I get a similar message but still a report: [r...@unxxhd01 inputs]# cf-agent -f ./foo.cf Validation: Scalar item in built-in FnCall isvariable-arg => { foo[1] } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$.]+) R: foo[1] is a variable with value one Validation: Scalar item in built-in FnCall isvariable-arg => { foo[1] } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$.]+) Validation: Scalar item in built-in FnCall isvariable-arg => { foo[1] } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$.]+)
[r...@unxxhd01 inputs]# cat foo.cf ###################### body common control { bundlesequence => { "neil" }; } bundle agent neil { vars: "foo[1]" string => "one"; "foo[2]" string => "two"; "foo[3]" string => "three"; classes: "runtime_${foo[1]}" expression => isvariable("foo[1]"); reports: redhat:: "foo[1] is a variable with value ${foo[1]}", ifvarclass => "runtime_${foo[1]}"; } Sincerely, -- Neil Watson 416-673-3465
CONFIDENTIALITY WARNING This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. AVERTISSEMENT RELATIF À LA CONFIDENTIALITÉ Ce message, ainsi que les pièces qui y sont jointes, est destiné à l’usage exclusif de la personne à laquelle il s’adresse et peut contenir de l’information personnelle ou confidentielle. Si le lecteur de ce message n’en est pas le destinataire, nous l’avisons par la présente que toute diffusion, distribution, reproduction ou utilisation de son contenu est strictement interdite. Veuillez avertir sur-le-champ l’expéditeur par retour de courrier électronique et supprimez ce message ainsi que toutes les pièces jointes.
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine