summaryrefslogtreecommitdiff
path: root/lib/chef/knife/data_bag_show.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/data_bag_show.rb')
-rw-r--r--lib/chef/knife/data_bag_show.rb4
1 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 529b0fafcf..aad94745dc 100644
--- a/lib/chef/knife/data_bag_show.rb
+++ b/lib/chef/knife/data_bag_show.rb
@@ -44,8 +44,8 @@ class Chef
# Users do not need to pass --encrypt to read data, we simply try to use the provided secret
ui.info("Encrypted data bag detected, decrypting with provided secret.")
raw = Chef::EncryptedDataBagItem.load(@name_args[0],
- @name_args[1],
- secret)
+ @name_args[1],
+ secret)
format_for_display(raw.to_h)
elsif encrypted && !secret
ui.warn("Encrypted data bag detected, but no secret provided for decoding. Displaying encrypted data.")