On 07-06-10 16:57, Bas van der Vlies wrote:
>>> I am using cfengine community edition 3.0.4 and i get this error/warning.
>>> But the class can not be true, because the environent variable is set.
>>> {{{
>>>     !! Redefinition of a constant variable "CLUSTER"
>>> Promise (version 1.0.1) belongs to bundle 'g' in file
>>> '/var/lib/cfengine3/inputs/promises.cf' near line 51
>>>     !! Redefinition of a constant variable "cluster_file"
>>> Promise (version 1.0.1) belongs to bundle 'g' in file
>>> '/var/lib/cfengine3/inputs/promises.cf' near line 52
>>> }}}
>>>
>>> the promises.cf file:
>>> {{{
>>> bundle common g
>>> {
>>> vars:
>>>     "lisa" string =>   getenv("LISA_CLUSTER","1");
>>>
>>>     LISA_CLUSTER::
>>>                    "CLUSTER" string =>   "LISA";
>>>                    "cluster_file" string =>   "lisa.cf";
>>>            !LISA_CLUSTER::
>>>                    "CLUSTER" string =>   "NOT LISA";
>>>                    "cluster_file" string =>   "common.cf";
>>>
>>>
>>> classes:
>>>     "LISA_CLUSTER" expression =>   strcmp("$(lisa)","1");
>>> }
>>>
>>> This is due the fact that vars is evaluated sooner the class is set. What i
>>> want is to import files based on a class that is not known. Or is there a
>>> better syntax for cf3 that i did not find.
>>>
>>
>> This should sort itself out. Make sure you are using a recent version, or 
>> wait for the
>> 3.0.5 release next week.
>>

I just upgraded to 3.0.5 and still receive these messages.



-- 
********************************************************************
*  Bas van der Vlies                    e-mail: b...@sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to