Weird - the email version stripped the stuff in square brackets!  There seems 
to be a bug in the mail system conversion...

-Dan

On Oct 21, 2010, at 10:56 AM, Seva Gluschenko wrote:

> Daniel, look into forum. They are arrays.
> 
> 2010/10/21 Daniel V. Klein <d...@lonewolf.com>:
>> Your variable "array1" and "array2" are not arrays - they are scalar strings.
>> 
>> On Oct 21, 2010, at 10:12 AM, no-re...@cfengine.com wrote:
>> 
>>> Forum: Cfengine Help
>>> Subject: variable expansion inside a single bundle
>>> Author: bglomm
>>> Link to topic: https://cfengine.com/forum/read.php?3,18819,18819#msg-18819
>>> 
>>> Hi all,
>>> 
>>> Got someone a hint on why I can't use variable expansion inside the var 
>>> section of a single bundle?
>>> 
>>> I have:
>>> ...
>>> vars:
>>> "array1"  string => something11;
>>> "array1"  string => something12;
>>> 
>>> "array2"  string => something21;
>>> "array2"  string => something22;
>>> 
>>> "all_user" slist => getindices("array1");
>>> "all_user_in_a_single_string_with" => join(" ", "all_user");
>>> ...
>>> 
>>> Now cf-promise says:
>>> 
>>> Function "join" was promised a list called "this.all_user" but was not 
>>> (yet) found
>>> 
>>> Strangely I can for instance append $(all_user_in_a_single_string) to a 
>>> file...
>>> but a negativ lookbehind in a "replace_with value" doesn't work :-((
>>> Do I got any chance to fix this??
>>> (Yes it's the only one that doesn't work... for all other variables it 
>>> works like a charme)
>>> 
>>> TIA
>>> 
>>> Bernhard
>>> 
>>> _______________________________________________
>>> Help-cfengine mailing list
>>> Help-cfengine@cfengine.org
>>> https://cfengine.org/mailman/listinfo/help-cfengine
>> 
>> _______________________________________________
>> Help-cfengine mailing list
>> Help-cfengine@cfengine.org
>> https://cfengine.org/mailman/listinfo/help-cfengine
>> 
> 
> 
> 
> -- 
> SY, Seva Gluschenko.

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

Reply via email to