Forum: CFEngine Help
Subject: Re: Trying to write an array of lists to files
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27402,27407#msg-27407

IIRC iteration over foreign lists inside arrays does not work at this time. Try 
building a local list from the reference.

bundle edit_line insert_array_lines(v)
{
        vars:
                'keys' slist => { "@{${v}}" };

        insert_lines:

        "$(keys)",
        comment => "Inserting key for value [$(keys)]";

}


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to