Robert, not exactly sure what you are trying, as your example does not seem to make complete sense. Perhaps you meant this?
body common control { bundlesequence => { "common" }; } body agent control { addclasses => { "test" }; } bundle agent common { vars: any:: "a[a1]" int => 1; "a[a2]" int => 1; test:: "a[a3]" int => 1; "i" slist => getindices("a"); reports: test:: "$(a[a1]) $(a[a2]) $(a[a3])"; "$(i)"; } Note that when you make things class dependent, you can introduce ordering issues which can make the results counter intuitive. M Robert Gerlach wrote: > hi, > > this test reports a1 and a2, but not a3. > It shows all three indices when I'm replacing the "test" class in with > a hard class (for example the hostname). > > body agent control { > addclasses => { "test" }; > } > > bundle agent common > { > vars: > any:: > "i" slist => getindices("musthave"); > "a[a1]" int => 1; > "a[a2]" int => 1; > > test:: > "a[a3]" int => 1; > > > reports: > test:: > "$(i)"; > } > > > Robert > > PS: I'm using 3.0.2b3 on Debian Lenny. > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > _______________________________________________ > Bug-cfengine mailing list > Bug-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/bug-cfengine -- Mark Burgess ------------------------------------------------- Professor of Network and System Administration Oslo University College, Norway Personal Web: http://www.iu.hio.no/~mark Office Telf : +47 22453272 ------------------------------------------------- _______________________________________________ Bug-cfengine mailing list Bug-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/bug-cfengine