set_variable_values_ini() with 3.18.2

Bob <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
I am using community version 3.18.2 on both Debian 10 and Debian 11. When I 
upgraded from 3.15.1 I started getting these errors:

 verbose: P:    Stack path: /default/main/methods/'Local policies in no 
specified 
order'/default/sitemain/files/'/etc/xrdp/sesman.ini'/default/set_variable_values_ini/field_edits/'.+\s:AlwaysGroupCheck\s:=.:'[1]
 verbose: Additional promise info: version 'CFEngine Promises.cf 3.18.2' 
source
path '/var/cfengine/inputs/lib/files.cf' at line 446
   error: No matched line to edit fields of for pattern 
'#+\s*AlwaysGroupCheck\s*=.*' in '/etc/xrdp/sesman.ini'
   error: Errors encountered when actuating fields_edit promise 
'#+\s*AlwaysGroupCheck\s*=.*'

Background: I set up a variable to edit the /etc/xrdp/sessman.ini file as 
follows:

vars:
    "sesman_ini[Security][AllowRootLogin]" string => "false";
    "sesman_ini[Security][TerminalServerUsers]" string => "xrdp";
    "sesman_ini[Security][AlwaysGroupCheck]" string => "true";

files:
    "/etc/xrdp/sesman.ini"
    comment       => "Custom sesman.ini settings for xrdp",
    edit_line     => set_variable_values_ini("siteg.sesman_ini", 
"Security"),
    classes       => if_repaired("restart_xrdp");

The good news is the edits I need are happening, but the errors are getting 
logged. Anyway to get rid of these errors?

-- 
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 on the web visit https://groups.google.com/d/msgid/help-cfengine/abb0cd65-145f-4046-82cf-9eeb8cfbeacdn%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.