Temporarily you may replace the CF_IDRANGE in src/cf.defs.h with
"[a-zA-Z0-9_$.-]+"
for convenience
M
Patrick Grant wrote:
> If you try:
>
> """
> body common control {
> bundlesequence => { "wwwdatatest" } ;
> }
>
> body perms user(username) {
> owners => { "$(username)" };
>
> }
>
> bundle agent wwwdatatest {
> files:
> "/tmp/www-data-test"
> perms => user("www-data");
> }
> """
>
> You get:
>
> # /var/cfengine/bin/cf-promises -f ./file_breakage.cf
> Validation: Scalar item in owners => { www-data } in rvalue is out of
> bounds (value should match pattern [a-zA-Z0-9_$.]+)
>
> Dashes are allowed in Linux (and some distros ship expecting them to work).
>
> Patrick
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine
--
Mark Burgess
-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway
Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine