On 03/16/2012 11:42 AM, Marco Marongiu wrote: > Il 16/03/2012 15:42, Nick Anderson ha scritto: >>>> Your approach is not exactly equivalent to having a classes attribute in >>>> vars, but I made it do ;) >> What is so different about it? > > The difference is that with a classes attribute, the class is set > immediately, and would affect subsequent promises in vars in the same > pass. Having to set the "has_shortname" class in "classes:" means that > you have to wait the following pass to have other vars set based on that > class. > > Other than that, it's quite similar. But not identical.
Yep, when I have to do some strict ordering I will also set a negative like "not_has_shortname" right after so that I can tell if something has really not been done yet. Usually I don't need that kind of strict ordering though. -- Nick Anderson <n...@cmdln.org> _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine