From 0646d27d97d45a347fd5de89cc3cb1841fa45296 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 16 Jan 2019 10:54:26 -0800 Subject: 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 --- lib/chef/resource/ssh_known_hosts_entry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1