Forum: CFEngine Help Subject: It is possible to uses a slist variable in the inputs directive ? Author: ydast...@caesars.com Link to topic: https://cfengine.com/forum/read.php?3,26281,26281#msg-26281
Hello, I try to used a string list variable in the inputs directive without success here is the code snippet: body common control { bundlesequence => { "environments", "main", "env_main" }; inputs => { "cfengine_stdlib.cf", "environment_$(environments.active)/env_promises.cf", "@(environments.cffiles)", }; } bundle common environments { vars: any:: "active" string => "testing", policy => "overridable"; "cffiles" slist => lsdir("/home/yves/cferules/environment_$(active)", "p-.*", "true"); } There is a way to obtain this kind of behavior ? At the moment I received an error of type: Can't stat file "./@(environments.cffiles)" for parsing Yves _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine