Forum: CFEngine Help
Subject: Re: What does {{{ files: "/tmp/filename.txt"; }}} mean? (and why is 
not a "promise_kept" if /tmp/filename.txt exists?)
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,25102,25103#msg-25103

I don't think your first promise follows the spirit of a files promise.  You 
are really using it as a class promise.  Since that is not the intent of a 
files promise I'm not surprise you did not get your expected results.  Without 
any attributes in the promise I don't see any way for the promise to be kept.

Bigger picture I don't think that the fileexists approach is valid either.  
There is no promise of the contents of the target file.  What if it is empty or 
the internal syntax if faulty?

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to