On 02/14/2012 04:50 AM, Nick Anderson wrote: > On 02/13/2012 01:09 PM, no-re...@cfengine.com wrote: >> Forum: CFEngine Help >> Subject: Re: Problems looping over slist with global reference >> Author: mark >> Link to topic: https://cfengine.com/forum/read.php?3,24805,24812#msg-24812 >> >> I'm afraid this is the documented behaviour. Consider it a known bug for the >> time being. > So I suppose this is related to how I can't seem to get a slist out of > an array when the array is passed to a bundle. > > I tried several things, but none were successful. > > R: test: l1 $(config[key]) > R: test: l2 $(main.array[key]) > R: test: l3 $(main.array[key]) > R: test: l4 $(main.array[key]) > R: test: l5 $($(main.array)[key]) > R: test: l6 @(main.array[key]) > R: test: l7 @(config[key]) > R: test: s1 stringvalue > R: test: s2 stringvalue > R: main: l1 listitem1 > R: main: l1 listitem2 > R: main: l2 $(this.array[key]) >
Just drop the qualifier $(context.variable) -> $(variable) -- CTO and Founder CFEngine http://www.cfengine.com http://www.markburgess.org _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine