Reading through section 12.6 about the variable context "this", it
doesn't explicitly state whether $(this.promiser) would be available
within the promise's comment. This does not work (pun intended):

bundle agent test {
    files:
        "/tmp/blah"
                handle => "create_blah",
               comment => "Ensure $(this.promiser) is created",
                create => "true";
}

The output of cf-agent -vK from this bundle shows:

nova>     .........................................................
nova>     Promise handle: create_blah
nova>     Promise made by: /tmp/blah
nova> 
nova>     Comment:  Ensure $(this.promiser) is created
nova>     .........................................................

Does it work for anyone else? I'm running the following version:

This comprises cf-promises core community version 3.0.3patch1 - (C)
Cfengine AS 2008-
This core uses commercial Nova extensions at version 1.0.13 (C) Cfengine
AS 2009-

Thanks,
Justin

-- 
Justin C. Lloyd 
Unix Infrastructure Engineer 
DigitalGlobe, An Imaging and Information Company


This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.

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

Reply via email to