I reported this issue a while back and Dan submitted it as a ticket. I
found that $(this.promiser) wasn't being interpolated in promise
comments. Perhaps it is a broader issue that originally thought?

-----Original Message-----
From: help-cfengine-boun...@cfengine.org
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Paul Tatarsky
Sent: Wednesday, March 10, 2010 10:11 AM
Cc: help-cfengine@cfengine.org
Subject: Re: this.promiser with copy_from

> Yep, you're definitely going to see the bug, then.  The report was
against
> 3.0.3, and I *think* it is fixed in 3.0.4

I've been trying to get this working and cannot seem to. Or I don't know
what I'm doing which is a frequent thing so bear with me.

As of a 3.0.4 source build. I will try SVN in a moment.

My goal was to "reduce" the chance for admin typo error in a copy
operation by simply referencing $(this.promiser) as the path in
copy_from. I've already typed in the path as the promise.

Am I missing something basic?

files:
  "/path/to/some/file"
        copy_from => quick_copy($(this.promiser));

I believe $(this.promiser) as being equal to "/path/to/some/file" in
this case.

Quick copy just contains the logic for a standard copy of a master to a
provided path. basically the same as secure_cp/remote_cp/local_cp in the
stdlib.

I freely admit I may be "doing this wrong". Since many of my rules are
this format, I guess it would also be nice for quick_copy to not even
need that as an argument.

Am I "doing this wrong" ? Is there a better way to quickly write the
promise for a set of files to be copied?

-- 
----------------------------------------------------------
Paul Tatarsky                            p...@tatarsky.com
             http://www.tatarsky.com/
----------------------------------------------------------
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

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