Hi

./ is not a valid folder for a promises; cfengine cannot be sure of the file
you want to use. Use the full path instead.

Regards,
Nicolas

On Fri, Jan 15, 2010 at 5:00 AM, Daniel He <[email protected]> wrote:

> Hi,all!
>
>
>      i want to get information from a file, but no mather readstringarray
> or readstringlist that i used , error comes out :
> Scalar item in built-in FnCall readstringarray-arg => {
> ./pubkeyall_test.txt } in rvalue is out of bounds (value should match
> pattern [cC]:\\.*|/.*), near token ''
> Scalar item in built-in FnCall readstringlist-arg => { ./pubkeyall_test.txt
> } in rvalue is out of bounds (value should match pattern [cC]:\\.*|/.*),
> near token ''
>
> my file looks like that as below:
> abc:normal:ssh-rsa:AAAAB3NzaC1yc2EAAAABJQAAAIEAziPSKl3prPzleGQvWkC6AAPebHEu
>
> and what i do  as below:
> body common control
> {
>     bundlesequence => { "adduser" };
> }
>
> ###################################
>
> bundle agent adduser
> {
>     vars:
>          "userlist" slist =>
> readstringlist("./pubkeyall_test.txt","",":",30,5000);
>
>
>     reports:
>         Yr2010::
>             "List username: $(userlist)";
> }
>
>
> can anyone tells me what's wrong of this? thx so much!
>
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
>
>
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to