Forum: Cfengine Help
Subject: Re: variable expansion inside a single bundle
Author: bglomm
Link to topic: https://cfengine.com/forum/read.php?3,18819,18848#msg-18848

thnx Neil,

yes, but:
 
cf-promises -vf ./bar.cf 

tells me still (last four lines of output):
cf3 Initiate variable convergence...
cf3  -> Checking common class promises...
cf3 Function "join" was promised a list called "this.all_user" but this was not 
(yet) found
cf3  -> Inputs are valid
#

"Inputs are valid", that's nice as the last line. But the second last isn't 
that assuring at all ;-/

My original prob I solved... it WAS a matter of that particular regex 
construct. 
 
thnx

Bernhard


neilhwatson Wrote:
-------------------------------------------------------
> Please post a full example next time.  
> 
> ######################
> body common control {
>     bundlesequence => { "test" };
> }
> 
> bundle common g {
>     classes:
>         "all" expression => "any";
> }
> 
> bundle agent test {
> 
> 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" string =>
> join(" ", "all_user");
> 
> reports:
> 
>     all::
>     "${all_user_in_a_single_string_with}"; 
> }
> nwat...@tofrcpl58903 ~/.cfagent/inputs $
> cf-agent.exe -f ./bar.cf
> R: user1 user2
>

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

Reply via email to