Syntactically this is perfectly correct but there might be a bug in the 
evaluation since this.promiser has to be evaluated in a special way to be 
available early during processing.
-- 
Sent from my Android phone with probably ridiculous and involuntary spelling 
corrections.

Nick Anderson <n...@cmdln.org> wrote:

On 04/05/2012 06:42 PM, Victor Balada Diaz wrote:
> Hello,
> 
> I think i've found a bug on cfengine 3.2.3. If someone could confirm I'll
> happily open a bug report.
> 
> If i use canonify() under handle => body of a promise with iteration
> $(this.handle) doesn't work.

<snip>

> If i replace
> handle => canonify("whatever_one"),
> with
> handle => "whatever_one",
> 
> Output works as expected:


I don't think handle can be anything other than a string. So you cant
use a function call there.

I am wondering why cf-promises didnt report a syntax error there.

Nick Anderson <n...@cmdln.org>
_____________________________________________

Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to