Forum: CFEngine Help
Subject: Re: bug? or feature? "set_variable_values" in "cfengine_stdlib.cf"
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,22719,22728#msg-22728

I've just tried your workaround as a copy/paste of the two sections from your 
earlier link (and a rename of the bundle to 'set_variable_values_bugfix' so it 
can sit alongside the existing bundle).  Alas, cfengine doesn't like it:

=============
 -> Promised replacement "NETMASK=255.255.252.0" for pattern 
"^[\s#]*NETMASK\s*=.*$" is not properly convergent while editing 
/etc/sysconfig/network-scripts//ifcfg-bond0
Because the regular expression "^[\s#]*NETMASK\s*=.*$" still matches the 
end-state replacement string "NETMASK=255.255.252.0"
Promise (version not specified) belongs to bundle 'set_variable_values_bugfix' 
in file '/var/cfengine/inputs/net_interfaces.cf' near line 324
=============

If you wrote it before 3.1.4, might something have changed in later releases 
now to generate such errors from your bundle.?  Hints welcome (I'm new to v3 of 
cfengine!).

But it serves to strengthen the requirement for a proper bugfix in cfengine 
itself (or in "cfengine_stdlib.cf" if that would be more appropriate).

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

Reply via email to