Forum: CFEngine Help Subject: Re: Does ifvarclass allow illegal class expressions? (containing spaces) why doesn't it auto-canonify? (to save CPU cycles?) Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,25123,25204#msg-25204
This is exactly why this sort of structure appears pretty frequently in my policies: "cvar[$(varlist)]" string => canonify("$(varlist)"); Then I use cvar in both class promises and ifvarclass statements, as appropriate. It cuts down on annoying warnings about "auto canonifying name" as well. :) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine