summaryrefslogtreecommitdiff
path: root/spec/unit/platform
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-10-31 17:12:48 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-10-31 17:12:48 -0700
commit1412e0c68dd2ed5e73a96f4d62f3b57bc661387a (patch)
treeceeab8015e84a0af38d53469191836e4f21fbc83 /spec/unit/platform
parentc4ed115bed739bec87654b040bf426ba8943fea7 (diff)
downloadchef-1412e0c68dd2ed5e73a96f4d62f3b57bc661387a.tar.gz
Chef 15 node attribute array fixeslcg/chef-15-attribute-array-fixes
Doing something like: ``` node.default["foo"] = [] node.default["foo"] << { "bar" => "baz } ``` Would result in a Hash instead of a VividMash inserted into the AttrArray, so that: ``` node.default["foo"][0]["bar"] # gives the correct result node.default["foo"][0][:bar] # does not work due to the sub-Hash not # converting keys ``` This fixes that behavior, but is likely a breaking change to someone who expects to ingest hashes with symbol keys and get back out symbol keys, they will now get converted to strings. This breaking change is fully 100% intentional. This makes the node attribute structure more consistent and predictable. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/platform')
0 files changed, 0 insertions, 0 deletions