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

Hi, 

I have a text file with some content and parameters. One parameter is 


default=0



My edit_line is


bundle edit_line myedit_inform_grub {
replace_patterns:
      "default=0" replace_with => value("default=1");

}




Seems simple enough. But when running cf-agent in verbose mode I see

cf3>  -> No pattern "default=0" in /boot/grub/grub.conf

and nothing is edited. What syntax do I need to use to actually get it to see 
this pattern? I've tried "^default=0$" also. 

I am using CFe 3.2.1 

Thanks.

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

Reply via email to