Hi,

  For modularity reasons, I'd like to use a dynamic slist for inputs, for 
example  :

body common control {
        bundlesequence => {
          "update",
          "executor",
          "monitor",
          "server",
          "run"
        };

        inputs => {
                "classes.cf",
                "library.cf",
                "update.cf",
                "monitor.cf",
                "cf-serverd.cf",
                "cf-execd.cf",
                readstringlist("Conf/inputs.lst","#.*","\n",10,200)
        };
}

This fails with the following error message :

Non file object  Îè Í in list
Undeclared promise bundle "bundle_socle()" was referenced in a promise
Validation: Scalar item in built-in FnCall readstringlist-arg => { 
Conf/inputs.lst } in rvalue is out of bounds (value should match pattern 
("?[a-zA-Z]:\\.*)|(/.*))

Is there a way to make this work ? Or an alternate method to dynamically 
include files on demand ?

Thanks,
Laurent Verbièse.

Ce message et toutes les pieces jointes (ci-apres le "message") sont 
confidentiels et etablis a l'attention exclusive des destinataires.
Toute utilisation ou diffusion non autorisee est interdite. Tout message 
electronique est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce 
message s'il est altere, deforme ou falsifie.

This message and any attachments (the "message") are confidential and intended 
solely for the addressees.
Any unauthorized use or dissemination is prohibited. E-mails are susceptible to 
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be 
liable for the message if altered, changed or falsified.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to