Forum: CFEngine Help Subject: Re: delete_lines and select region Author: jbdenis Link to topic: https://cfengine.com/forum/read.php?3,26551,26627#msg-26627
I don't understand something about edit_file. The reference mentions that " All file edits specified in a single edit_line bundle are handled 'atomically' ". What does atomically means here when we talk about convergent file editing ? If I take the bundle edit_line editfile from Diego's post, I can have to following : - during the first pass, the content of the file is wiped out after "#### CFENGINE ANCHOR" (delete_lines promise) - during the second pass the insert_lines promise inserts what it has to insert Result : between the two passes (5 minutes), I've got a file without the content I want. This is a single edit_line bundle, but it is not atomic in the way I thought by reading the documention. How to understand the "atomic" and the convergent aspect of file editing ? Is there any way to achieve a "one pass" file editing in a edit_line bundle that combines insert_lines, delete_lines... ? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine