Forum: Cfengine Help Subject: Re: Force variables to be defined after classes? Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,18656,18681#msg-18681
I'd rather rewrite your example as follows: vars: "machines_list" slist => { readstringlist("$(sys.workdir)/inputs/$(restricted_policy_hostlist_file)","#[^\n]*","[\n]",99999999,99999999) }; I believe, it's significantly cleaner, and simpler, and saves some CPU cycles as well ). If this approach doesn't help, please describe your issue more thoroughly. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine