diff options
Diffstat (limited to 'lib/chef/guard_interpreter/resource_guard_interpreter.rb')
-rw-r--r-- | lib/chef/guard_interpreter/resource_guard_interpreter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/guard_interpreter/resource_guard_interpreter.rb b/lib/chef/guard_interpreter/resource_guard_interpreter.rb index 6df60aec89..e245eab2c7 100644 --- a/lib/chef/guard_interpreter/resource_guard_interpreter.rb +++ b/lib/chef/guard_interpreter/resource_guard_interpreter.rb @@ -1,6 +1,6 @@ # # Author:: Adam Edwards (<adamed@chef.io>) -# Copyright:: Copyright 2014-2016, Chef Software Inc. +# Copyright:: Copyright 2014-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -108,7 +108,7 @@ class Chef def block_from_attributes(attributes) Proc.new do - attributes.keys.each do |attribute_name| + attributes.each_key do |attribute_name| send(attribute_name, attributes[attribute_name]) if respond_to?(attribute_name) end end |