On 07/20/2012 12:54 PM, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Re: delete_lines and select region > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,26551,26560#msg-26560 > > You might also consider a different approach. My best practice is to avoid > destructive policies. If something goes wrong the whole file can be lost. > Further, promising to remove part of a file does not promise that the > remainder of that file is in good order. It is best, in my experience, to > promise the complete contents of a file. Create rather than destroy.
I generally prefer to promise the complete contents as well. Neil, I am curious do you tend to use copy_from or edit_line more? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine