Forum: CFEngine Help
Subject: Promise to edit lines
Author: tjavo87
Link to topic: https://cfengine.com/forum/read.php?3,24213,24213#msg-24213

Hi Everyone,

I'm trying to create a promise that will add some lines to the file 
/etc/ntp/step-tickets. During a check with cf-promise the inputs are valid. The 
promise will also add some lines to the file but running cf-agent the following 
error occurs;

cf3> Initiate variable convergence...
cf3>     ? Augment scope append_if_no_line with str (s)
cf3>      ??  Private class context

The bundle looks like this;


bundle agent ntp {

vars:
"steptickets" string => "ntp.test.local";

files:
      "/etc/ntp/step-tickets"
          create => "true",
          edit_line => append_if_no_line("$(steptickets)");

}


Could we ignore the error code of is there something wrong with the promise?

Thanx & Regards

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

Reply via email to