diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-12 15:33:27 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-12 15:33:27 -0800 |
commit | a030711a57e126f58b2e897c915d430e67cb7d13 (patch) | |
tree | 4c92a61db73e69587747baefc2a63683e275dd29 /lib/chef/knife/ssh.rb | |
parent | a5afeecc19170cac9d430f7bee128d05e9bca5a9 (diff) | |
parent | f890cc4480c601b08c657cee2d24dd3ed472c054 (diff) | |
download | chef-a030711a57e126f58b2e897c915d430e67cb7d13.tar.gz |
Merge pull request #4573 from chef/lcg/bump-rubocop
pull rubocop 0.37.2 into chefstyle
Diffstat (limited to 'lib/chef/knife/ssh.rb')
-rw-r--r-- | lib/chef/knife/ssh.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb index a1e54f784d..4184171a4e 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -186,8 +186,8 @@ class Chef Chef::Log.debug("Using node attribute #{Chef::Config[:knife][:ssh_attribute]}") attribute = Chef::Config[:knife][:ssh_attribute] elsif node[:cloud] && - node[:cloud][:public_hostname] && - !node[:cloud][:public_hostname].empty? + node[:cloud][:public_hostname] && + !node[:cloud][:public_hostname].empty? Chef::Log.debug("Using node attribute 'cloud[:public_hostname]' automatically as the ssh target") attribute = "cloud.public_hostname" else |