Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 39c99dc86fce50ace0b2db27bf4ec643d86d54b8 1 parent 624892f
@dmitriy-kiriyenko dmitriy-kiriyenko authored
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.
Something went wrong with that request. Please try again.