diff options
author | Steven Murawski <steven.murawski@gmail.com> | 2016-02-16 12:28:05 -0600 |
---|---|---|
committer | Steven Murawski <steven.murawski@gmail.com> | 2016-02-16 12:28:05 -0600 |
commit | a95a87d50c9e5af2fbd583afcf972880656d1a4b (patch) | |
tree | 895d5665d3d2757a8288b484cff135cde1e9c674 | |
parent | 8a8513665f8e1f862d73a20a0459352c4a614039 (diff) | |
parent | 0d627be44e8fa7fd3c2558ccf568d481f0f22cf2 (diff) | |
download | chef-a95a87d50c9e5af2fbd583afcf972880656d1a4b.tar.gz |
Merge pull request #4524 from PatrickWalker/feature/4154
Update to Log Level when showing unencrypted databag
-rw-r--r-- | lib/chef/knife/data_bag_show.rb | 2 | ||||
-rw-r--r-- | spec/unit/knife/data_bag_show_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/data_bag_show.rb b/lib/chef/knife/data_bag_show.rb index 505235538a..82978db5cf 100644 --- a/lib/chef/knife/data_bag_show.rb +++ b/lib/chef/knife/data_bag_show.rb @@ -51,7 +51,7 @@ class Chef ui.warn("Encrypted data bag detected, but no secret provided for decoding. Displaying encrypted data.") format_for_display(raw_data) else - ui.info("Unencrypted data bag detected, ignoring any provided secret options.") + ui.warn("Unencrypted data bag detected, ignoring any provided secret options.") format_for_display(raw_data) end diff --git a/spec/unit/knife/data_bag_show_spec.rb b/spec/unit/knife/data_bag_show_spec.rb index 4637e34ba1..18768ca476 100644 --- a/spec/unit/knife/data_bag_show_spec.rb +++ b/spec/unit/knife/data_bag_show_spec.rb @@ -95,7 +95,7 @@ qux: http://localhost:4000/data/bag_o_data/qux} it "displays the data bag" do expect(Chef::DataBagItem).to receive(:load).with(bag_name, item_name).and_return(data_bag) - expect(knife.ui).to receive(:info).with("Unencrypted data bag detected, ignoring any provided secret options.") + expect(knife.ui).to receive(:warn).with("Unencrypted data bag detected, ignoring any provided secret options.") expected = %q{baz: http://localhost:4000/data/bag_o_data/baz id: id |