Do we really need to include depth_search to rotate a file?

file:
   "/var/cfengine/promise.log"
      rename => rotate("3");

Cheers,
--Nakarin

On Jun 4, 2010, at 8:46 AM, Seva Gluschenko wrote:

> Hello folks,
> 
> When I wrote a promise to rotate /var/cfengine/promise.log (BTW, why
> Cfengine doesn't rotate it?), cf-promises warned me about using rename
> body without depth_search body. Well, okay, despite I was surprised
> with such a requirement, I've added depth_search => recursion("1").
> Now (with 3.0.5b2), executor sends me messages with the following
> warning:
> 
> Warning: depth_search (recursion) is promised for a base object
> /var/cfengine/promise.log that is not a directory
> 
> So how do I get rid of warnings? Can depth_search be removed now or so?
> 
> -- 
> SY, Seva Gluschenko.
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to