Are you trying to set a class if a vars promise has been kept, or set a 
variable based on the existence of a class?

-- 
Brian

On Mar 16, 2012, at 7:41 AM, Marco Marongiu <brontoli...@gmail.com> wrote:

> Il 16/03/2012 15:16, Nick Anderson ha scritto:
>>>> classes:
>>>>>>  "has_shortname"
>>>>>>     expression => isvariable("shortname"),
>>>>>>     comment => "Set a class if short hostname has been defined";
>>>> 
>>>> Nice hint, thanks, I'll use it :)
>> I am kind of surprised that having classes attribute on a vars promise
>> didn't complain.
> 
> ...but it didn't, it just failed silently.
> 
> Your approach is not exactly equivalent to having a classes attribute in
> vars, but I made it do ;)
> 
> Thanks again
> -- bronto
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to