diff options
author | Patrick Walker <bpatrick.walker@gmail.com> | 2016-02-03 23:56:20 +0000 |
---|---|---|
committer | Patrick Walker <bpatrick.walker@gmail.com> | 2016-02-03 23:56:20 +0000 |
commit | 0d627be44e8fa7fd3c2558ccf568d481f0f22cf2 (patch) | |
tree | 8d1868bf0d19b241879d6c8df96d6e3daae1114e | |
parent | 22d700e4a1a3c44d6d794fd5c4c1f8932a74cf17 (diff) | |
download | chef-0d627be44e8fa7fd3c2558ccf568d481f0f22cf2.tar.gz |
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 489949a0e9..ca1e6277c5 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 |