Forum: Cfengine Help
Subject: Re: "Duplicate selection of value for variable ..." messages
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19400,19402#msg-19402

readstringlist() returns an array, so the braces around it are not needed. 
Removing them make the test work correctly:

body common control
{
        bundlesequence  => { "test" } ;
}

bundle agent test
{
vars:

        "foo"
                slist   =>
                        readstringlist( "c:\cygwin\tmp\foo" , "#.*" , "[\n]" , 
1000 , 100000 )
                ;
reports:
        cfengine_3::
                "${foo}";
}


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to