no-re...@cfengine.com writes:
> This seems to be a pass-related evaluation issue. If the variable
> assignments are conditioned to occur on the second pass, then
> everything works fine. This example produces the correct results:
[...]
> classes:
> "secondpass" expression => "any";
Thanks
Forum: CFEngine Help
Subject: Re: Passing parameters to methods bundle
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,26825,26833#msg-26833
(I've added this comment to the bug report)
This seems to be a pass-related evaluation issue. If the variable assignments
are conditi
no-re...@cfengine.com writes:
> It seems like a bug to me also. Head on over and report it.
Yep, done:
https://cfengine.com/bugtracker/view.php?id=1270
Neil, thanks for your input on this one. It really helped making things
more clear.
Regards,
--
Trond H. Amundsen
Center for Information
Forum: CFEngine Help
Subject: Re: Passing parameters to methods bundle
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26825,26830#msg-26830
It seems like a bug to me also. Head on over and report it.
___
Help-cfengine mailing
no-re...@cfengine.com writes:
> cf-promises seems be evaluating product before the parameters are
> passed. Without passing, product works as expected.
That would explain it. Seems like a bug, but I'm not sure.
Regards,
--
Trond H. Amundsen
Center for Information Technology Services, Universit
Forum: CFEngine Help
Subject: Re: Passing parameters to methods bundle
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26825,26828#msg-26828
FYI, the using the sum function causes the same error. On a related matter why
do product and sum functions work with real numbers
Forum: CFEngine Help
Subject: Re: Passing parameters to methods bundle
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26825,26827#msg-26827
cf-promises seems be evaluating product before the parameters are passed.
Without passing, product works as expected.
$ cat foo.cf