diff options
author | Jacob Helwig <jacob@technosorcery.net> | 2018-06-25 11:16:23 -0700 |
---|---|---|
committer | Jacob Helwig <jacob@technosorcery.net> | 2018-06-25 11:26:53 -0700 |
commit | 47e0571aace7e8222eb6f07ffe35419e07b6a491 (patch) | |
tree | 4bdcdc497f1b991e4e594a7f471385e5489059d8 /lib | |
parent | 93ebe94656230209315ce0214103b239a28dec5e (diff) | |
download | puppet-sshkeys_core-47e0571aace7e8222eb6f07ffe35419e07b6a491.tar.gz puppet-sshkeys_core-47e0571aace7e8222eb6f07ffe35419e07b6a491.tar.bz2 |
Remove Rubocop Lint/AssignmentInCondition violation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/type/ssh_authorized_key.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type/ssh_authorized_key.rb b/lib/puppet/type/ssh_authorized_key.rb index 6b59078..5c4df53 100644 --- a/lib/puppet/type/ssh_authorized_key.rb +++ b/lib/puppet/type/ssh_authorized_key.rb @@ -90,10 +90,10 @@ module Puppet def should return super if defined?(@should) && @should[0] != :absent - return nil unless user = resource[:user] + return nil unless resource[:user] begin - return File.expand_path("~#{user}/.ssh/authorized_keys") + return File.expand_path("~#{resource[:user]}/.ssh/authorized_keys") rescue Puppet.debug 'The required user is not yet present on the system' return nil |