Forum: CFEngine Help Subject: Re: Variable Class Names Author: bbomgardner Link to topic: https://cfengine.com/forum/read.php?3,22838,22858#msg-22858
A quick test shows that that cfengine will actually canonify the string automatically in this case. This is news to me, as I thought that it would only do this when setting classes with a function like promise_repaired in a classes body. body common control { bundlesequence => { "test" }; } bundle agent test { vars: "foo" string => "b@r!"; classes: "$(foo)" expression => "any"; } cf3> ========================================================= cf3> classes in bundle test (1) cf3> ========================================================= cf3> cf3> c.persist is set to: (null) cf3> c.timer is set to: (null) cf3> pt is set to: (null) cf3> Class identifier "b@r!" contains illegal characters - canonifying cf3> Initiate variable convergence... cf3> c.persist is set to: (null) cf3> c.timer is set to: (null) cf3> pt is set to: (null) cf3> cf3> + Private classes augmented: cf3> + b_r_ cf3> cf3> - Private classes diminished: cf3> cf3> _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine