summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Walker <bpatrick.walker@gmail.com>2016-02-03 23:56:20 +0000
committerPatrick Walker <bpatrick.walker@gmail.com>2016-02-03 23:56:20 +0000
commit0d627be44e8fa7fd3c2558ccf568d481f0f22cf2 (patch)
tree8d1868bf0d19b241879d6c8df96d6e3daae1114e
parent22d700e4a1a3c44d6d794fd5c4c1f8932a74cf17 (diff)
downloadchef-0d627be44e8fa7fd3c2558ccf568d481f0f22cf2.tar.gz
Update to Log Level when showing unencrypted databag
-rw-r--r--lib/chef/knife/data_bag_show.rb2
-rw-r--r--spec/unit/knife/data_bag_show_spec.rb2
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