summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-01-16 10:54:26 -0800
committerTim Smith <tsmith@chef.io>2019-01-16 10:54:26 -0800
commit0646d27d97d45a347fd5de89cc3cb1841fa45296 (patch)
treee2232c531e0bba40c4a4be31a8b763ab40efdb0d
parentc86f10dfb9c898874a58cff92804ef437e3e8e98 (diff)
downloadchef-host_entry.tar.gz
ssh_known_host_entry: Use the name_property properly in debug logginghost_entry
You'd get the resource name not the host property in the logging. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/ssh_known_hosts_entry.rb2
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 167ac959e8..c986e1127d 100644
--- a/lib/chef/resource/ssh_known_hosts_entry.rb
+++ b/lib/chef/resource/ssh_known_hosts_entry.rb
@@ -103,7 +103,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