Re: set_variable_values_ini() with 3.18.2

"[email protected]" <[email protected]> Thu, 5 Dec 2024 06:34:55 -0800 (PST)
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
------=_Part_37010_1200819353.1733409295482
Content-Type: multipart/alternative; 
	boundary="----=_Part_37011_1427322616.1733409295482"

------=_Part_37011_1427322616.1733409295482
Content-Type: text/plain; charset="UTF-8"

Any news on this, please?

Thanks.

-- David Lee
-- Diamond Light Source

On Friday, 15 November 2024 at 15:48:03 UTC [email protected] 
wrote:

> I had lost track of the fact you still needed me to provide a test case.
>
> Here it is.  It is extracted from a real part of our policy, setting a 
> key=value in RH8 "/etc/dnf/automatic.conf" (I've slightly tweaked it to 
> make it standalone and using a safe target file).
>
> Run it at least twice (or as often as you like).  You'll see that although 
> the target file successfully converges, CFE persists in (falsely) reporting 
> errors.
>
> Please could you take it forward from this?
>
> =================================================================
> #
> # Demonstrate CFEngine "edit_line" bug:
> #
>
> body file control
> { 
>       inputs => { "/var/cfengine/inputs/lib/files.cf" };
> }
>
> bundle agent __main__
> {     
>   vars:
>     any::
>       #"fname" string => "/etc/dnf/automatic.conf";
>       "fname" string => "/tmp/automatic.conf";
>
>       "tab[commands][apply_updates]" string => "no";
>
>   files:
>     any::
>       "$(fname)"
>         edit_line => set_variable_values_ini("$(this.bundle).tab", 
> "commands");
>
> }
> =================================================================
>
> Thanks.
>
> -- David Lee
>
>
>
>
>
> On Monday, 19 August 2024 at 22:01:33 UTC+1 [email protected] wrote:
>
> "[email protected]" <[email protected]> writes: 
>
> > Is there any progress on this, please? It is somewhat of an irritant to 
> us and our logging! 
> > 
> > Thanks. 
>
> Hi David 
>
>
> I didn't see a ticket in this thread to check status on, probably 
> no work has been done. 
>
> PRs are great if you know how to fix, but at least having a standalone 
> policy file that reproduces the issue is necessary. 
>
> If you can make sure there is a ticket that at least contains a 
> reproducer then there is better chance of something happening. 
>
>
> -- 
> Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech 
>
>

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/help-cfengine/bc297842-7365-4980-8e8b-2251a863a792n%40googlegroups.com.

------=_Part_37011_1427322616.1733409295482
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div>Any news on this, please?</div><div><br /></div><div>Thanks.</div><div=
><br /></div><div>-- David Lee</div><div>-- Diamond Light Source<br /></div=
><br /><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On=
 Friday, 15 November 2024 at 15:48:03 UTC [email protected] wrote:=
<br/></div><blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; =
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I had lost t=
rack of the fact you still needed me to provide a test case.<br><br>Here it=
 is.=C2=A0 It is extracted from a real part of our policy, setting a key=3D=
value in RH8 &quot;/etc/dnf/automatic.conf&quot; (I&#39;ve slightly tweaked=
 it to make it standalone and using a safe target file).<br><br>Run it at l=
east twice (or as often as you like).=C2=A0 You&#39;ll see that although th=
e target file successfully converges, CFE persists in (falsely) reporting e=
rrors.<br><div><br></div><div>Please could you take it forward from this?<b=
r></div><div><br></div><div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
<br></div>#<br># Demonstrate CFEngine &quot;edit_line&quot; bug:<br>#<br><b=
r>body file control<br>{ <br>=C2=A0 =C2=A0 =C2=A0 inputs =3D&gt; { &quot;/v=
ar/cfengine/inputs/lib/<a href=3D"http://files.cf" target=3D"_blank" rel=3D=
"nofollow" data-saferedirecturl=3D"https://www.google.com/url?hl=3Den-GB&am=
p;q=3Dhttp://files.cf&amp;source=3Dgmail&amp;ust=3D1733495626797000&amp;usg=
=3DAOvVaw2ZGpU8nOZ8TDIzIrMWDfE4">files.cf</a>&quot; };<br>}<br><br>bundle a=
gent __main__<br>{ =C2=A0 =C2=A0 <br>=C2=A0 vars:<br>=C2=A0 =C2=A0 any::<br=
>=C2=A0 =C2=A0 =C2=A0 #&quot;fname&quot; string =3D&gt; &quot;/etc/dnf/auto=
matic.conf&quot;;<br>=C2=A0 =C2=A0 =C2=A0 &quot;fname&quot; string =3D&gt; =
&quot;/tmp/automatic.conf&quot;;<br><br>=C2=A0 =C2=A0 =C2=A0 &quot;tab[comm=
ands][apply_updates]&quot; string =3D&gt; &quot;no&quot;;<br><br>=C2=A0 fil=
es:<br>=C2=A0 =C2=A0 any::<br>=C2=A0 =C2=A0 =C2=A0 &quot;$(fname)&quot;<br>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 edit_line =3D&gt; set_variable_values_ini(&quot=
;$(this.bundle).tab&quot;, &quot;commands&quot;);<br><br>}<br>=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<div><br></div><div>Thanks.</div><div><br>=
</div><div>-- David Lee<br></div><div><br></div><div><br></div><div><br></d=
iv><div><br></div><div><br></div><div><div dir=3D"auto">On Monday, 19 Augus=
t 2024 at 22:01:33 UTC+1 [email protected] wrote:<br></div><blockquot=
e style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">&quot;<a rel=3D"nofollow">[email protected]</a>&=
quot; &lt;<a rel=3D"nofollow">[email protected]</a>&gt; writes:
<br>
<br>&gt; Is there any progress on this, please?  It is somewhat of an irrit=
ant to us and our logging!
<br>&gt;
<br>&gt; Thanks.
<br>
<br>Hi David
<br>
<br>
<br>I didn&#39;t see a ticket in this thread to check status on, probably
<br>no work has been done.
<br>
<br>PRs are great if you know how to fix, but at least having a standalone
<br>policy file that reproduces the issue is necessary.
<br>
<br>If you can make sure there is a ticket that at least contains a
<br>reproducer then there is better chance of something happening.
<br>
<br>
<br>--
<br>Nick Anderson | Doer of Things | <a value=3D"+17855501767" rel=3D"nofol=
low">(+1) 785-550-1767</a> | <a href=3D"https://northern.tech" rel=3D"nofol=
low" target=3D"_blank" data-saferedirecturl=3D"https://www.google.com/url?h=
l=3Den-GB&amp;q=3Dhttps://northern.tech&amp;source=3Dgmail&amp;ust=3D173349=
5626797000&amp;usg=3DAOvVaw0b6QFyPJXwvMOANW-HgLGk">https://northern.tech</a=
>
<br></blockquote></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;help-cfengine&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">help-=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
help-cfengine/bc297842-7365-4980-8e8b-2251a863a792n%40googlegroups.com?utm_=
medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/help-=
cfengine/bc297842-7365-4980-8e8b-2251a863a792n%40googlegroups.com</a>.<br /=
>

------=_Part_37011_1427322616.1733409295482--

------=_Part_37010_1200819353.1733409295482--