Permalink
Browse files

Do it only if ssh key is not blank

What it was prior is that 
the second part of the conditional 
always returned false.
  • Loading branch information...
1 parent 624892f commit 39c99dc86fce50ace0b2db27bf4ec643d86d54b8 @dmitriy-kiriyenko dmitriy-kiriyenko committed Sep 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cookbooks/maintenance/recipes/users.rb
View
2 cookbooks/maintenance/recipes/users.rb
@@ -31,7 +31,7 @@
owner username
group group
mode 0600
- only_if { !ssh_key.nil? || !ssh_key = '' }
+ only_if { ssh_key && ssh_key != '' }
end
file '/etc/sudoers.d/deploy_chef' do

0 comments on commit 39c99dc

Please sign in to comment.