diff --git a/hash.rb b/hash.rb index 7e63d43..f0c01d4 100644 --- a/hash.rb +++ b/hash.rb @@ -19,6 +19,8 @@ module Puppet::Parser::Functions result = {} begin + # This is to make it compatible with older version of Ruby ... + array = array.flatten result = Hash[*array] rescue Exception raise(Puppet::ParseError, 'hash(): Unable to compute ' +