summaryrefslogtreecommitdiff
path: root/lib/chef/policy_builder/expand_node_object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/policy_builder/expand_node_object.rb')
-rw-r--r--lib/chef/policy_builder/expand_node_object.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/policy_builder/expand_node_object.rb b/lib/chef/policy_builder/expand_node_object.rb
index 4afb4d7d60..f87de2da2a 100644
--- a/lib/chef/policy_builder/expand_node_object.rb
+++ b/lib/chef/policy_builder/expand_node_object.rb
@@ -186,10 +186,10 @@ class Chef
cookbook_hash = api_service.post("environments/#{node.chef_environment}/cookbook_versions",
{ run_list: @expanded_run_list_with_versions })
- cookbook_hash = cookbook_hash.inject({}) do |memo, (key, value)|
+ cookbook_hash = cookbook_hash.inject({}) { |memo, (key, value)|
memo[key] = Chef::CookbookVersion.from_hash(value)
memo
- end
+ }
rescue Exception => e
# TODO: wrap/munge exception to provide helpful error output
events.cookbook_resolution_failed(@expanded_run_list_with_versions, e)