Forum: Cfengine Help Subject: insert_lines twice problem Author: schattenfell Link to topic: https://cfengine.com/forum/read.php?3,22660,22660#msg-22660
Hello, at first the code^^: [...] vars: "musthave" slist => { "text_a", "text_b", "text_a" } [...] files: "/tmp/musthave" create => "true", edit_line => add_line(@(this.musthave)); [...] bundle edit_line add_line(line_list) { insert_lines: "$(line_list)"; } I am facing the problem, that "text_a" is only inserted ones, because every run of insert_lines is a promise and so CFEngine3 says "This promise has already been verified" and the insert is skipped. So I get as content of the file only: text_a text_b But I want: text_a text_b text_a How can I CFEngine3 force to insert the second text_a too? Thanks for your reply. Best wishes Michael _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine