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
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to