diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-21 15:10:29 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-21 15:10:29 -0800 |
commit | 3ac12a699f5d0eb92ef791f1dd2350d50ac0c009 (patch) | |
tree | c98eb51db38f75fec8773ffe58c0afa7636aa79d | |
parent | a2776adb489a952e728f08ed80cebf5be493c0bf (diff) | |
download | chef-3ac12a699f5d0eb92ef791f1dd2350d50ac0c009.tar.gz |
role_merge can be elmianted now
-rw-r--r-- | lib/chef/mixin/deep_merge.rb | 9 | ||||
-rw-r--r-- | lib/chef/run_list/run_list_expansion.rb | 4 |
2 files changed, 2 insertions, 11 deletions
diff --git a/lib/chef/mixin/deep_merge.rb b/lib/chef/mixin/deep_merge.rb index c19f2a1a7d..3d4690bb57 100644 --- a/lib/chef/mixin/deep_merge.rb +++ b/lib/chef/mixin/deep_merge.rb @@ -36,15 +36,6 @@ class Chef DeepMerge.deep_merge(second, first) end - # Inherited roles use the knockout_prefix array subtraction functionality - # This is likely to go away in Chef >= 0.11 - def role_merge(first, second) - first = Mash.new(first) unless first.kind_of?(Mash) - second = Mash.new(second) unless second.kind_of?(Mash) - - DeepMerge.deep_merge(second, first) - end - class InvalidParameter < StandardError; end # Deep Merge core documentation. diff --git a/lib/chef/run_list/run_list_expansion.rb b/lib/chef/run_list/run_list_expansion.rb index 73665f39e7..fed50ee232 100644 --- a/lib/chef/run_list/run_list_expansion.rb +++ b/lib/chef/run_list/run_list_expansion.rb @@ -96,8 +96,8 @@ class Chef end def apply_role_attributes(role) - @default_attrs = Chef::Mixin::DeepMerge.role_merge(@default_attrs, role.default_attributes) - @override_attrs = Chef::Mixin::DeepMerge.role_merge(@override_attrs, role.override_attributes) + @default_attrs = Chef::Mixin::DeepMerge.deep_merge(@default_attrs, role.default_attributes) + @override_attrs = Chef::Mixin::DeepMerge.deep_merge(@override_attrs, role.override_attributes) end def applied_role?(role_name) |