On 06/25/2012 09:10 AM, Marco Marongiu wrote: > Hi all > > OK, I admit this must be *dumb*, but I cannot get out of this... > > Suppose I have an array of lists: > > "array[key1]" slist => { ... } ; > "array[key2]" slist => { ... } ; > . . . > "array[keyN]" slist => { ... } ; > > > and suppose that $(selector) contains one of the keys. Given that, I'd > like to expand the list in $(array[$(selector)]) into a separate list. I > tried everything I thought sensible, but with no much success to be > honest: e.g.: > > "list" slist => { "@(array[$(selector)])" } ;
Take a look at this example. It doesn't do exactly what you want but it will pull the list out of the array. I'm not sure how to get the list from each array index combinded into one list. https://gist.github.com/2988934 _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine