Skip to content

Commit

Permalink
Do it only if ssh key is not blank
Browse files Browse the repository at this point in the history
What it was prior is that 
the second part of the conditional 
always returned false.
  • Loading branch information
dmitriy-kiriyenko committed Sep 20, 2012
1 parent 624892f commit 39c99dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/maintenance/recipes/users.rb
Expand Up @@ -31,7 +31,7 @@
owner username owner username
group group group group
mode 0600 mode 0600
only_if { !ssh_key.nil? || !ssh_key = '' } only_if { ssh_key && ssh_key != '' }
end end


file '/etc/sudoers.d/deploy_chef' do file '/etc/sudoers.d/deploy_chef' do
Expand Down

0 comments on commit 39c99dc

Please sign in to comment.