On 08/06/2010 12:49, Vasiliy G Tolstov wrote:
> В Втр, 08/06/2010 в 12:35 +0200, Bas van der Vlies пишет:
>
>    
>> I just tested it and the environment variable CFALLCLASSES is not available
>> when i use usemodule in a common bundle.  I think you can only use this
>> variable in cfagent bundle and then use it the commands promise.
>>
>> Maybe a cfengine developer has some useful comments about it.
>>      
>
> I'm agree. Yes, in the module i can access ../state/allclasses.txt, but
> if cfengine provide environment variables - this is preferd way (more
> universal)
>
>    
Hi Vasiliy,

If you need to access an environement variable, why don't you just use 
the getenv function ?
http://www.cfengine.org/manuals/cf3-reference.html#Function-getenv
But I'm not sure I understand what you want to do


Nicolas

-- 
Nicolas CHARLES
Normation SAS - http://www.normation.com
44 rue Cauchy – 94110 ARCUEIL
+33 (0)1 83 62 26 96  - +33 (0)6 14 63 25 18

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

Reply via email to