Hello,
It seems that the method file_select with the ctime parameter cannot
find newly copied files.
With the following example, I would expect all files newer than one hour
to be selected. But the newly copied file aren't selected.
However, if i run a second time the promises, the file copied in the
previous runs are selected..
Regards,
Nicolas
bundle agent get_files {
(...)
files:
"/home/nicolas/get-shares/."
create => "true";
"/home/nicolas/get-shares/"
copy_from => my_scp("${sharer_dir}","${sharers}"),
depth_search => recurse_visible("inf");
}
bundle agent handle_new_files{
files:
"/home/nicolas/get-shares/."
file_select => by_dates,
transformer => "/bin/echo $(this.promiser)",
depth_search => recurse("inf");
}
body file_select by_dates
{
ctime => irange(ago(0,0,0,1,0,0),now);
file_result => "ctime";
}
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine