summaryrefslogtreecommitdiff
path: root/lib/chef/knife/ssh.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-12 15:33:27 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-12 15:33:27 -0800
commita030711a57e126f58b2e897c915d430e67cb7d13 (patch)
tree4c92a61db73e69587747baefc2a63683e275dd29 /lib/chef/knife/ssh.rb
parenta5afeecc19170cac9d430f7bee128d05e9bca5a9 (diff)
parentf890cc4480c601b08c657cee2d24dd3ed472c054 (diff)
downloadchef-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.rb4
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