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

This is a bug caused by set_variable_values' use of field_edits, together with 
field_edits' lack of a feature to specify the maximum number of fields in a 
line (I asked about this some time ago). So the line is split on each equals 
sign, and then only the second such field is set to the value you provide.

My fix for this has been to use replace_patterns instead of field_edits, in my 
modified version of set_variable_values: 
https://cfengine.com/forum/read.php?3,22667,22681#msg-22681

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

Reply via email to