summaryrefslogtreecommitdiff
path: root/lib/chef/dsl/data_query.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/dsl/data_query.rb')
-rw-r--r--lib/chef/dsl/data_query.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/dsl/data_query.rb b/lib/chef/dsl/data_query.rb
index 865d914d13..b966885724 100644
--- a/lib/chef/dsl/data_query.rb
+++ b/lib/chef/dsl/data_query.rb
@@ -55,7 +55,7 @@ class Chef
raise
end
- def data_bag_item(bag, item, secret=nil)
+ def data_bag_item(bag, item, secret = nil)
DataBag.validate_name!(bag.to_s)
DataBagItem.validate_id!(item)
@@ -73,7 +73,7 @@ class Chef
raise
end
end
-
+
item
rescue Exception
Log.error("Failed to load data bag item: #{bag.inspect} #{item.inspect}")