Hi,
First why does the code:
bundle common global
{
vars:
any::
"AUTHORIZED_IPS" slist => {"127.0.0.1", "192.168.0/24"};
}
body server control
{
trustkeysfrom => @{global.AUTHORIZED_IPS};
allowconnects => @{global.AUTHORIZED_IPS};
maxconnections => "10";
logallconnections => "true";
}
produces this error:
rhs is a scalar, but lhs (slist) is not list type, near token
'@{global.AUTHORIZED_IPS}'
I have to write it as
trustkeysfrom => { @{global.AUTHORIZED_IPS} };
to get it working, which is a cumbersome syntax. Is this "normal", eg the
expected behavior? I think @{global.AUTHORIZED_IPS} should be enough for
cf-engine to recognize it is dealing with a list.
Second, the error message
rhs is a scalar, but lhs (slist) is not list type, near token
'@{global.AUTHORIZED_IPS}'
which comes from the
CheckConstraintTypeMatch() function in syntax.c, is obviously wrong,
it should read
rhs is a scalar, but lhs (slist) is not a scalar type.
Can someone fix this, as it is quite confusing?
Thanks.
Jean-Noel
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine