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: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Lebel, Marco Sent: Wednesday, March 31, 2010 12:40 PM To: Nicolas Charles Cc: help-cfengine@cfengine.org 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:charl...@gmail.com] Sent: Wednesday, March 31, 2010 11:15 AM To: Lebel, Marco Cc: help-cfengine@cfengine.org 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 > 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 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine