diff options
author | Jeremy J. Miller <jm@chef.io> | 2018-05-16 07:50:39 -0400 |
---|---|---|
committer | Jeremy J. Miller <jm@chef.io> | 2018-05-16 07:50:39 -0400 |
commit | ca3be72bd1f2b393dd2e70ed4620549d449b1559 (patch) | |
tree | e79ef868edaec017b61175239c5b6feb1dcd6179 /lib/chef/chef_fs/data_handler/data_handler_base.rb | |
parent | 7acbb49f913e7064e8736b0e56eff8ecf5acf10a (diff) | |
download | chef-ca3be72bd1f2b393dd2e70ed4620549d449b1559.tar.gz |
added one more rspec test
Signed-off-by: Jeremy J. Miller <jm@chef.io>
Diffstat (limited to 'lib/chef/chef_fs/data_handler/data_handler_base.rb')
-rw-r--r-- | lib/chef/chef_fs/data_handler/data_handler_base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/chef_fs/data_handler/data_handler_base.rb b/lib/chef/chef_fs/data_handler/data_handler_base.rb index 9fdc5579f2..c3cbb96ecc 100644 --- a/lib/chef/chef_fs/data_handler/data_handler_base.rb +++ b/lib/chef/chef_fs/data_handler/data_handler_base.rb @@ -63,8 +63,8 @@ class Chef def normalize_hash(object, defaults) # Make a normalized result in the specified order for diffing result = {} - defaults.each_pair do |key, default| - result[key] = object.is_a?(Hash) && object.key?(key) ? object[key] : default + defaults.each_pair do |key, value| + result[key] = object.is_a?(Hash) && object.key?(key) ? object[key] : value end if object.is_a?(Hash) object.each_pair do |key, value| |