summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-04-16 14:27:47 -0700
committerTim Smith <tsmith@chef.io>2018-05-30 15:18:24 -0700
commitfda165d37b9a2b8ca4656bc7ed0bb14fb943c8dd (patch)
treeb52ba7be6943f5d16956cc85f13f6efb9fb14d56
parentcfe5f41abf75597ca11a63df2507618660859582 (diff)
downloadchef-fda165d37b9a2b8ca4656bc7ed0bb14fb943c8dd.tar.gz
Remove the cookbook name part of the template
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/ssh_known_hosts_entry.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/chef/resource/ssh_known_hosts_entry.rb b/lib/chef/resource/ssh_known_hosts_entry.rb
index 5a016842e5..fee095e4fd 100644
--- a/lib/chef/resource/ssh_known_hosts_entry.rb
+++ b/lib/chef/resource/ssh_known_hosts_entry.rb
@@ -70,9 +70,6 @@ class Chef
end
end
- # messing with the run_context appears to cause issues with the cookbook_name
- r.cookbook_name = "ssh_known_hosts"
-
keys = r.variables[:entries].reject(&:empty?)
if key_exists?(keys, key, comment)