neilhwatson / evolve_cfengine_freelib

Evolve Thinking's free Cfengine promise library.
18 stars 5 forks source link

De-referencing a list for iteration does not work #12

Open neilhwatson opened 9 years ago

neilhwatson commented 9 years ago

Lists from efl_global_slists will not work if you attempt to de-reference them. See https://dev.cfengine.com/issues/6866

Workarounds:

You must call the lists directly, or do not use efl_global_slists and build them directly in policy like this:

bundle common list_backup
{
  vars:
     "policy_servers" slist => { "${sys.policy_hub}" };
     "localhost"      slist => { "localhost" };
}
neilhwatson commented 8 years ago

new bug https://tracker.mender.io/browse/CFE-1779?jql="External%20issue%20id"~"6866"