Yes, when you specify "suspiciousnames" the promise has meaning, so 
should be executed.
My use of the transformer was just to force Cfengine to run the promise.

Perhaps you would care to check if Dan did already report this in the 
bug tracker and add a note about suspiciousnames if so, otherwise report it?

Thanks.

--
Regards,
Eystein

On 02/01/2011 10:10 PM, Aleksey Tsalolikhin wrote:
> On Tue, Feb 1, 2011 at 12:27 PM, Eystein Måløy Stenberg
> <eystein.stenb...@gmail.com>  wrote:
>> Ah, now I remember - I did a slight change to your policy.
>> As it was, your files:-promise had no intention about the state, and was
>> thus skipped.
>>
>> Try this (just to check).
>>
>> --
>> files:
>>
>> "/root/tmp2"
>>   transformer =>  "/bin/true $(this.promiser)",
>>   depth_search =>    recurse("inf");
>> --
>
>
> Dear Eystein,
>
>    Sure enough, now it works.  Thanks!!!
>
>    I really don't understand it, though. Your files promise has no
> intention about state either.  Why does it work?
>
>    Ane why isn't
>
>        files:  "/root/tmp2"   depth_search =>  recurse("inf");
>
>    a promise to search /root/tmp2?  It looks like one to me.  Because I
> defined the suspiciousnames slist, I am expecting cf-agent to search
> the /root/tmp2 directory.  Wouldn't that be more elegant than
> /bin/true /root/tmp2?
>
>    BTW, I am not critical of your help!  Just want to contribute to
> Cfengine. :)  Would love to hear your thoughts on this.
>
> Best,
> Aleksey
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to