This is not the promise that gave you a message about needing depth search for
rename. Can
you show me how you got that message please?
Seva Gluschenko wrote:
> Mark,
>
> here it is:
>
> files:
> "$(sys.workdir)/promise.log"
> file_select => size_exceeds("1M"),
> rename => rotate("2"),
> depth_search => recurse("1"),
> comment => "rotate promise.log";
>
> Now I've commented out depth_search since I've got tired a bit of
> those warnings. Let's see if it changes something.
>
> It seems to be reasonable to add this promise to the bundle agent cfengine,
> BTW.
>
> 2010/6/4 Mark Burgess <[email protected]>:
>> Hi Seva,
>>
>> this sounds pretty silly, so I'm going to blame someone else for this ;-)
>> Can you show the original promise that generated the error please?
>>
>> 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?
>>>
>> --
>> Mark Burgess
>>
>> -------------------------------------------------
>> Professor of Network and System Administration
>> Oslo University College, Norway
>>
>> Personal Web: http://www.iu.hio.no/~mark
>> Office Telf : +47 22453272
>> -------------------------------------------------
>>
>
>
>
--
Mark Burgess
-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway
Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine