diff options
author | Bryan McLellan <btm@getchef.com> | 2014-06-20 14:21:07 -0700 |
---|---|---|
committer | Bryan McLellan <btm@getchef.com> | 2014-06-20 14:21:07 -0700 |
commit | da4796cf5cc7d0b902fa72ba457cf24e192bf831 (patch) | |
tree | df3753edb67b14875b1f044090f78de5d50f846e | |
parent | 97cd18bc0c07e80b542796d0a067873034f99c80 (diff) | |
download | chef-da4796cf5cc7d0b902fa72ba457cf24e192bf831.tar.gz |
CHEF-5158: Add some debugging information for knife ssh attribute
-rw-r--r-- | lib/chef/knife/ssh.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/knife/ssh.rb b/lib/chef/knife/ssh.rb index b039830253..6f3dac09db 100644 --- a/lib/chef/knife/ssh.rb +++ b/lib/chef/knife/ssh.rb @@ -172,11 +172,14 @@ class Chef # for the source of config[:attribute] and # config[:attribute_from_cli] if config[:attribute_from_cli] + Chef::Log.debug("Using node attribute '#{config[:attribute_from_cli]}' from the command line as the ssh target") host = extract_nested_value(item, config[:attribute_from_cli]) elsif item[:cloud] && item[:cloud][:public_hostname] + Chef::Log.debug("Using node attribute 'cloud[:public_hostname]' automatically as the ssh target") host = item[:cloud][:public_hostname] else # ssh attribute from a configuration file or the default will land here + Chef::Log.debug("Using node attribute '#{config[:attribute]}' as the ssh target") host = extract_nested_value(item, config[:attribute]) end # next if we couldn't find the specified attribute in the |