summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-09-09 10:50:41 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-09-21 10:37:59 -0700
commit8e3449879785b7572c0a9910cb4b2565413b713c (patch)
tree0c609667b38c4c139a377b0d4287751a7758608a
parent723bac74427f6f605fd2c9ab855afe59ba84d08b (diff)
downloadchef-8e3449879785b7572c0a9910cb4b2565413b713c.tar.gz
drop warn all the way down to debuglcg/ignore-unknown-metdata-rb-fields
we expect this to be forward compat, so that all this turns into is a nag message to upgrade which is probably better just not to display Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/cookbook/metadata.rb2
-rw-r--r--spec/unit/cookbook/metadata_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/cookbook/metadata.rb b/lib/chef/cookbook/metadata.rb
index 212c596272..02f9831d70 100644
--- a/lib/chef/cookbook/metadata.rb
+++ b/lib/chef/cookbook/metadata.rb
@@ -726,7 +726,7 @@ class Chef
if block_given?
super
else
- Chef::Log.warn "ignoring method #{method} on cookbook with name #{name}, possible typo or future metdata?"
+ Chef::Log.debug "ignoring method #{method} on cookbook with name #{name}, possible typo or future metadata?"
end
end
diff --git a/spec/unit/cookbook/metadata_spec.rb b/spec/unit/cookbook/metadata_spec.rb
index a6c85bd397..389f02501a 100644
--- a/spec/unit/cookbook/metadata_spec.rb
+++ b/spec/unit/cookbook/metadata_spec.rb
@@ -950,7 +950,7 @@ describe Chef::Cookbook::Metadata do
describe "from_file" do
it "ignores unknown metadata fields in metadata.rb files" do
- expect(Chef::Log).to receive(:warn).with(/ignoring method some_spiffy_new_metadata_field/)
+ expect(Chef::Log).to receive(:debug).with(/ignoring method some_spiffy_new_metadata_field/)
Tempfile.open("metadata.rb") do |f|
f.write <<-EOF
some_spiffy_new_metadata_field "stuff its set to"