On 08/02/2012 08:08 AM, Ted Zlatanov wrote:
> Think, instead, in terms of convergence.  So your class name should
> indicate the convergent action, not the system state.  When you name the
> class "rhsmcertd_needs_start", that indicates clearly, to a reader, what
> you're going to use it for.  The class's meaning doesn't decay as
> quickly, because you're not tied to the state of the system X seconds or
> minutes ago.

+1 I have found myself tending toward that as well.


loopx, you may want to look at adding another attribute to that promise. 
I have a vague recollection of a similar discussion on the list.

Basically the promisee has not promised anything, so its ok.
If you add a process_count attribute to that promise body I think you 
might start seeing the behaviour you were expecting or looking for.

That being said, I agree with Ted. I try to raise context classes that 
are descriptive of the action that's needed and then the policy tends to 
be a little more readable.


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

Reply via email to