Jim - I think I have it. Please try a3
Jim Wight wrote:
> Mark Burgess wrote:
>> My unit tests work fine. Can you provide a self-contained example?
>
> body common control
> {
> bundlesequence => { "copy" };
> }
>
> bundle agent copy
> {
> files:
> "/tmp/testfile1" copy_from => mycopy("/tmp/testfile1", "gudea");
> "/tmp/testfile2" copy_from => mycopy("/tmp/testfile2", "gudea");
> }
>
> body copy_from mycopy(from,server)
> {
> source => "$(from)";
> servers => { "$(server)" };
> }
>
>
> I'm operating under my own id, not as root.
>
> NB The empty directory /tmp/testfile1./tmp is still getting created following
> the successful copy of the first file.
>
> Jim
>
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine
--
Mark Burgess
-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway
Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine