Thanks Nick I actually discovered that there was a dumb, but it was not the question: it was me :)
Due to a well hidden bug in my code, the list expansion appeared not to be working. It took me some time, some runs of cf-agent -v, and an incremental set of changes in a bundle, to discover that the failing part was an assignment which contained an unset variable. That, in turn, made everything fail in a mysterious way. Summing up, the right way to expand a slist contained in an array element is actually: "list" slist => { "@(array[$(selector)])" } ; However, if you plan to use list as a parameter for a bundle, you'd better prefix the list expansion with the bundle name, e.g.: "list" slist => { "@(testbundle.array[$(selector)])" } ; and then use, e.g. ... edit_line => editbundle("testbundle.list") ; ... otherwise, depending on what you do with list in that editbundle, things may not work properly. Ciao -- bronto _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine