diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-28 10:12:36 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-25 09:29:29 -0700 |
commit | 55432829161a0294f2be81fe6064d6914bad9384 (patch) | |
tree | a712d8d7438d8508c87ee80069f75091cb9b4307 /lib/chef/node | |
parent | 19d46ebf8700df0d5668e9262f02aa2717101184 (diff) | |
download | chef-55432829161a0294f2be81fe6064d6914bad9384.tar.gz |
fix immutablize to add __root
much less red now
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/node')
-rw-r--r-- | lib/chef/node/immutable_collections.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/node/immutable_collections.rb b/lib/chef/node/immutable_collections.rb index 5773f681e4..5a2625cdc5 100644 --- a/lib/chef/node/immutable_collections.rb +++ b/lib/chef/node/immutable_collections.rb @@ -27,9 +27,9 @@ class Chef def immutablize(value) case value when Hash - ImmutableMash.new(value) + ImmutableMash.new(__root, value) when Array - ImmutableArray.new(value) + ImmutableArray.new(__root, value) else value end |