diff options
Diffstat (limited to 'hash.rb')
-rw-r--r-- | hash.rb | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 ' + |