Re: set_variable_values_ini() with 3.18.2
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
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/377f3f07-2120-4e88-8c5d-c9e43dea12d9n%40googlegroups.com.