libraries/default.rb
# Recursively convert ImmutableArray to Array (so we can merge later).
Recursively convert ImmutableArray to Array (so we can merge later).
Recursively convert ImmutableArray to Array ( so we can merge later ) .
def convert(node)
  attributes = {}
  node.each do |attr, value|
    case value
    when Hash
      attributes[attr] = convert(value)
    when Chef::Node::ImmutableArray
      attributes[attr] = value.dup
    else
      attributes[attr] = value
    end
  end
  attributes
end
def convert ( node ) attributes = { } node . each do | attr , value | case value when Hash attributes [ attr ] = convert ( value ) when Chef :: Node :: ImmutableArray attributes [ attr ] = value . dup else attributes [ attr ] = value end end attributes end
Recursively convert ImmutableArray to Array (so we can merge later).
Recursively convert ImmutableArray to Array ( so we can merge later ) .
node