[Pkg-puppet-devel] Bug#513320: Acknowledgement (arithmetic expression fails to work)
Jayen Ashar
jayen at science.unsw.edu.au
Thu Jan 29 05:33:48 UTC 2009
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)
> rval = @rval.safeevaluate(scope)
> file.puts rval.class
> file.puts rval.is_a?(String)
>
> yields:
> String
> false
>
> thoughts?
>
> Jayen Ashar wrote:
>> 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 = lval.send(@operator,rval)
>>> file.puts retval
>>> return retval
>>>
>>> and the output I got was:
>>> 10170
>>> >
>>> 1274
>>> false
>>>
>>> I can only assume this is doing a string comparison.
>>>
>>> Debian Bug Tracking System wrote:
>>>> Thank you for filing a new Bug report with Debian.
>>>>
>>>> This is an automatically generated reply to let you know your message
>>>> has been received.
>>>>
>>>> Your message is being forwarded to the package maintainers and other
>>>> interested parties for their attention; they will reply in due course.
>>>>
>>>> Your message has been sent to the package maintainer(s):
>>>> Puppet Package Maintainers <pkg-puppet-devel at lists.alioth.debian.org>
>>>>
>>>> If you wish to submit further information on this problem, please
>>>> send it to 513320 at bugs.debian.org, as before.
>>>>
>>>> Please do not send mail to owner at bugs.debian.org unless you wish
>>>> to report a problem with the Bug-tracking system.
>>>
>>
>
--
Jayen Ashar
Technical Officer
Computing Center
School of Mathematics and Statistics
M029, Red Center
The University of New South Wales SYDNEY NSW 2052
Ph: + 61 (2) 93857016
Fax: + 61 (2) 93857192
CRICOS provider code: 00098G
More information about the Pkg-puppet-devel
mailing list