Forum: Cfengine Help Subject: Re: cfengine edit_line - don't understand, must be something very basic Author: mark Link to topic: https://cfengine.com/forum/read.php?3,16672,16674#msg-16674
What you are doing byusing the getindices() list variable directly as an arbument to the edit bundle is to iterate over the editing of the file itself, i.e. you are saying for each index do edit file(...index ....) edit lines You should pass the list as @(bundle.list) to the edit_line bundle and use getindices() inside that bundle, so that you get edit file for each index do edit lines See an example like set_variable_values in the COPBL _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine