I added this to comparison_operator.rb:
file = File.open(/tmp/puppet_debug.txt,a)
file.puts lval
file.puts operator
file.puts rval
retval = lval.send(@operator,rval)
file.puts retval
some more odd outputs:
271
1274
true
0
==
0
false
Jayen Ashar wrote:
I added this to comparison_operator.rb:
file = File.open(/tmp/puppet_debug.txt,a)
file.puts lval
file.puts operator
file.puts rval
retval =
I changed it again:
def evaluate(scope)
file = File.open(/tmp/puppet_debug.txt,a)
# evaluate the operands, should return a boolean value
lval = @lval.safeevaluate(scope)
rval = @rval.safeevaluate(scope)
file.puts rval.class
upgrading from 0.24.6 to 0.24.7-2 seems to fix this bug
Jayen Ashar wrote:
I changed it again:
def evaluate(scope)
file = File.open(/tmp/puppet_debug.txt,a)
# evaluate the operands, should return a boolean value
lval = @lval.safeevaluate(scope)
4 matches
Mail list logo