diff options
author | Tim Smith <tsmith@chef.io> | 2019-01-16 10:54:26 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2019-01-17 15:57:06 -0800 |
commit | d3a0f71d6c278ddc423dafbd861dd95af11ac3a3 (patch) | |
tree | 88d0464e149db69d0f09306c9971befc58351543 /lib | |
parent | d9c39a35f8f65034843751a901d7927d8b5f279f (diff) | |
download | chef-d3a0f71d6c278ddc423dafbd861dd95af11ac3a3.tar.gz |
ssh_known_host_entry: Use the name_property properly in debug logging
You'd get the resource name not the host property in the logging.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/ssh_known_hosts_entry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/ssh_known_hosts_entry.rb b/lib/chef/resource/ssh_known_hosts_entry.rb index a1257722e0..5084f1513b 100644 --- a/lib/chef/resource/ssh_known_hosts_entry.rb +++ b/lib/chef/resource/ssh_known_hosts_entry.rb @@ -104,7 +104,7 @@ class Chef keys = r.variables[:entries].reject(&:empty?) if key_exists?(keys, key, comment) - Chef::Log.debug "Known hosts key for #{new_resource.name} already exists - skipping" + Chef::Log.debug "Known hosts key for #{new_resource.host} already exists - skipping" else r.variables[:entries].push(key) end |