tobami/littlechef — Issue #73: Deep merge attributes at the same precedence level
Author: tobami
Created: 2011-11-23 11:18:34+00:00
State: open

The node data bag merges attributes taking into account the Chef attribute precedence order.
However, there are special cases, specifically for attributes at the same precedence level.

One such case is:
* A cookbook's default attribute is set to an array of numbers
* A role defines that attribute using the default level

LittleChef currently substitutes the value defined in the cookbook for the value defined in the role.
However, the two values attributes should be deep merged (that is the second array appended), as explained [here](http://wiki.opscode.com/display/chef/Attributes#Attributes-SettingAttributesattheSamePrecedenceLevel)