Forum: CFEngine Help Subject: Re: set_config_values() does different things depending on original value of config variable in file Author: linuxgurugamer Link to topic: https://cfengine.com/forum/read.php?3,26379,26386#msg-26386
I put it in, it works (of course). Here is a diff of the change: *** cfengine_stdlib.cf.orig 2012-07-02 16:03:41.864251045 -0400 --- cfengine_stdlib.cf 2012-07-02 16:04:06.255995376 -0400 *************** *** 293,299 **** replace_patterns: # If the line is there, maybe commented out, uncomment and replace with # the correct value ! "^\s*($(index)\s+(?!$($(v)[$(index)])).*|# ?$(index)\s+.*)$" replace_with => value("$(index) $($(v)[$(index)])"), classes => always("replace_attempted_$(cindex[$(index)])"); --- 293,299 ---- replace_patterns: # If the line is there, maybe commented out, uncomment and replace with # the correct value ! "^\s*($(index)\s+(?!$($(v)[$(index)])$).*|# ?$(index)\s+.*)$" replace_with => value("$(index) $($(v)[$(index)])"), classes => always("replace_attempted_$(cindex[$(index)])"); _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine