diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-01-12 17:45:58 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-01-15 09:37:44 -0800 |
commit | ed1d1ad509ac3dd5a38b983ea04b212187cf3f6f (patch) | |
tree | ebd5e2964cb42ad8a8d6df6857836db6f9022505 | |
parent | 38a6623583e34193adcc32f0e4d520f7a21be6a5 (diff) | |
download | chef-ed1d1ad509ac3dd5a38b983ea04b212187cf3f6f.tar.gz |
fix array slices
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-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 62bc0fba65..76816a2d59 100644 --- a/lib/chef/node/immutable_collections.rb +++ b/lib/chef/node/immutable_collections.rb @@ -109,7 +109,7 @@ class Chef key end - def [](index) + def [](*args) value = super value = value.call while value.is_a?(Proc) value @@ -193,7 +193,7 @@ class Chef e end - def [](key) + def [](*args) value = super value = value.call while value.is_a?(Proc) value |