Hey,
I guess I should add the fact that the ref_file arguments does go through the
list but the readstringarray("r_user",.... Does not reinitialize the array.
Marco
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lebel, Marco
Sent: Wednesday, March 31, 2010 12:40 PM
To: Nicolas Charles
Cc: [email protected]
Subject: RE: Help with usebundle required
Hello,
Thanks for the info I just tried rev 937 and helas it did not fix my bug I have
the same issue....
Any insight?
Marco
-----Original Message-----
From: Nicolas Charles [mailto:[email protected]]
Sent: Wednesday, March 31, 2010 11:15 AM
To: Lebel, Marco
Cc: [email protected]
Subject: Re: Help with usebundle required
Hi Marco,
I think this is a bug, solved in the svn
(https://cfengine.com/bugtracker/view.php?id=82)
You should check with the trunk
Regarsd,
Nicolas
Lebel, Marco wrote:
>
> Hello all,
>
> I am using the community edition version 3.0.4p2 and I have the following:
>
> bundle agent do_user_accounts
>
> {
>
> vars:
>
> "corp_data" string => "/corp/data";
>
> "ref_files" slist => { "$(corp_data)/ref_passwd.dat",
> "$(corp_data)/ref_passwd_excp1.dat" };
>
> methods:
>
> "users_from" usebundle => do_users_from("$(ref_files)");
>
> }
>
> bundle agent do_users_from(ref_file)
>
> {
>
> vars:
>
> "dim_ru" int =>
> readstringarray("r_user","$(ref_file)","#[^\n]*",":",1000,16000);
>
> ....
>
> ...
>
> ..
>
> ..
>
> The do_users_from bundle is executed twice as I expected but the array
> r_user is set with the content of the first file and never with the
> content of the second or subsequent files *not what I expected*. Can
> someone let me know if this is a feature or a bug?
>
> Many thanks,
>
> Marco
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
>
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine