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