summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-04-16 14:27:47 -0700
committerTim Smith <tsmith@chef.io>2018-06-11 11:22:08 -0700
commitf06ae68c43db1a433e5abc30ac000547ee1705de (patch)
treea8d23f797ac51393bc2064ea0bac678e575c6fd6
parent787bde4cea59d8fefbaae9b0fe930fc2d9d8b710 (diff)
downloadchef-f06ae68c43db1a433e5abc30ac000547ee1705de.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)