Forum: CFEngine Help
Subject: Re: CFEngine Help: Performing a simple edit with replace_patterns
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,25345,25350#msg-25350

I figured out my problem.  Classic case of a bad copy/paste from a previous 
promise. Turns out I had this as my promise:

      "/boot/grub/grub.conf"
         comment => "Fix Grub",
         edit_defaults => backup_and_empty_before_edit,
         perms => mog("600", "root", "root"),
         edit_line => myedit_inform_grub;

Once I noticed that and changed it to edit_defaults => std_defs_with_backup, 
everything works as designed. 

Thank you, 
-Dave

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

Reply via email to