On 09/09/2012 10:22 PM, Diego Zamboni wrote:
> Nick,
>
> You are indeed hitting a bug, this one:
> https://cfengine.com/bugtracker/view.php?id=904
>
> The workaround is to condition the getindices() so that it happens only on
> the second pass, with something like this:
>
> secondpass::
>
Nick,
You are indeed hitting a bug, this one:
https://cfengine.com/bugtracker/view.php?id=904
The workaround is to condition the getindices() so that it happens only on the
second pass, with something like this:
secondpass::
"array_keys" slist => getindices("local_array");
classes
Is it expected behavior that you cannot create new index values with a list?
If I do a simple array creation with a list it seems to work
https://gist.github.com/3684884 (set_array_values_with_list.cf)
cf-agent -KIf ./set_array_values_with_list.cf
R: Array: local_array[id1]=value
R: Array: local