On 07/31/2012 12:14 PM, Diego Zamboni wrote:
> Nick,
>
> There is a bit of magic to properly resolve class-variable dependencies.
> This is mentioned in the reference guide:
> https://cfengine.com/manuals/cf3-Reference#Agent-normal-ordering
>
>     CFEngine tries to keep variable and class promises before starting
>     to consider any other kind of promise. In this way, global variable
>     and classes can be set, as well as creating classes promises, upon
>     which later agent-bundle vars promises may depend.
>
>
> And this is witnessed in the verbose output from your example:

I see, thanks for pointing that out, it makes a little more sense but 
it's still quite magical. I wish it were a little easier to see what was 
happening. But that does explain that variable convergence output in the 
classes type output that I have seen previously and wondered about.

So how does that apply to this example where I flipped where the 
filename var was classed on any either before or after debug.

https://cfengine.com/forum/read.php?3,26796,26804#msg-26804

I am guessing that's because the last declaration took precedence and it 
also happened to be "any"?
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to