diff options
author | Tim Smith <tsmith@chef.io> | 2018-06-14 14:28:24 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-06-14 14:28:24 -0700 |
commit | 9cc4d65c5a6acefd0c4f014861c1ee1372e3f7d6 (patch) | |
tree | c33c89260e4154837e40062210d571d01bf8aac2 | |
parent | aa4f3285f3e49919e29f40337183fd0510baaee5 (diff) | |
download | chef-less_failing.tar.gz |
Don't throw deprecation warning when a cookbook loads a core resourceless_failing
We'll never be able to get these old out of people's runlists and throwing a deprecation entirely breaks how we tell people to test the upgrade path for major chef client versions. There's just way too much windows/yum/apt floating around and even with the latest versions you're going to get these warnings for many resources (everything in windows). The deprecation has good intentions, but seems like it's going to cause a lot of hurt and keep users from upgrading to newer client releases.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/node_map.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/node_map.rb b/lib/chef/node_map.rb index 634786af93..089de41c4c 100644 --- a/lib/chef/node_map.rb +++ b/lib/chef/node_map.rb @@ -84,11 +84,7 @@ class Chef else klass.superclass.to_s end - # For now, only log the warning. - Chef.log_deprecation("Trying to register #{type_of_thing} #{key} on top of existing Chef core #{type_of_thing}. Check if a new version of the cookbook is available.") - # In 15.0, uncomment this and remove the log above. - # Chef.log_deprecation("Rejecting attempt to register #{type_of_thing} #{key} on top of existing Chef core #{type_of_thing}. Check if a new version of the cookbook is available.") - # return + Chef::Log.warn("#{type_of_thing} #{key} attempted to load from a cookbook. The #{type_of_thing} #{key} is now included in Chef and takes precedence over the existing cookbook #{type_of_thing} which will be ignored. You may be able to remove this cookbook dependency from your runlist if you do not use other recipes/resources/libraries from the cookbook. Alternatively there may be a newer version of this cookbook without the #{type_of_thing}.") end # The map is sorted in order of preference already; we just need to find |