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

Reply via email to