On Fri, 15 Apr 2011 11:21:44 -0400 Frans Lawaetz <[email protected]>
wrote:
>> You want to have the class set if the promise need to be repaired
>> (if the file content is not right). So it's not *if_notkept* that
>> you need to use, but *if_repaired*
>>
FL> That doesn't seem to work either.. The promise wasn't legitimately
FL> repaired so I would not expect cf3 to execute down that path. I set
FL> ifrepaired and it still reported:
FL> cf3 Skipping whole next promise ("[snip]"), as context warndba is not
FL> relevant
Try this:
body classes context_sensitive(x)
# Define a class from a prefix x concatenated with the outcome of the promise
{
promise_repaired => { "$(x)_repaired" };
promise_kept => { "$(x)_kept" };
repair_failed => { "$(x)_failed" };
repair_denied => { "$(x)_denied" };
repair_timeout => { "$(x)_timeout" };
}
...
classes => context_sensitive("myprefix"),
...
And you'll be able to see (with debugging) exactly what classes were
defined.
Ted
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine