lib/puppet/parser/ast/objectparam.rb in puppet-0.13.2 vs lib/puppet/parser/ast/objectparam.rb in puppet-0.13.6

- old
+ new

@@ -6,12 +6,13 @@ def each [@param,@value].each { |child| yield child } end # Return the parameter and the value. - def evaluate(scope) - param = @param.safeevaluate(scope) - value = @value.safeevaluate(scope) + def evaluate(hash) + scope = hash[:scope] + param = @param.safeevaluate(:scope => scope) + value = @value.safeevaluate(:scope => scope) return [param, value] end def tree(indent = 0) return [