Neil, Thanks for your effort, really appreciated...
So I guess my take away is that it should work... but, helas, I came across a bug. Oh well back to hard coding the iterations. Marco -----Original Message----- From: nwat...@symcor.com [mailto:nwat...@symcor.com] Sent: Wednesday, February 17, 2010 12:40 PM To: Mark Burgess Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfengine.org; Lebel, Marco Subject: Re: referencing a slist within a slist array? Seems to work the same on Community 3.0.2 and 3.0.3. [r...@unxxhd01 inputs]# /home/nwatson/src/cfengine-3.0.3/src/cf-agent -f ./test.cf R: Server = g1 Client_list = p1 R: Server = g1 Client_list = p2 R: Server = g1 Client_list = p3 List parameter not found while constructing "do_gather" - use @(scope.variable) in calling reference R: Server = $(idx) Client_list = @(master.ip[$(idx)]) R: The client list for server g1 are $(ip[g1]) R: The client list for server g2 are $(ip[g2]) [r...@unxxhd01 inputs]# cat test.cf ###################### body common control { bundlesequence => { "master" }; } bundle agent master { vars: "ip[g1]" slist => { "p1", "p2", "p3" }; "ip[g2]" slist => { "p4", "p5", "p6" }; "idx" slist => getindices("ip"); methods: "gathering" usebundle => do_gather( "$(idx)", #"$(ip[$(idx)])" "@(master.ip[$(idx)])" ); reports: linux:: "The client list for server $(idx) are $(ip[$(idx)])"; } bundle agent do_gather(server,clients){ reports: linux:: "Server = ${server} Client_list = ${clients}"; } Sincerely, -- Neil Watson 416-673-3465 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine