Re: getindices from array problems

2012-10-02 Thread Diego Zamboni
Jose, If you move the policy_server_show bundle to *after* the define_policy_server_array bundle, then it works fine. This seems to be a bug - ordering of bundles within the file should not affect their execution. Would you mind filing one under https://cfengine.com/dev ? Thanks, --Diego On

Re: getindices from array problems

2012-10-02 Thread jose nuno neto
Thanks for replying Right now I am just learning the language and thought of this has an example, useful example I know about the server list, was just wondering of getting a cleaner way in case of failures but regarding the language the using function getindices on a array from other bundle does

CFEngine Help: Re: getindices from array problems

2012-10-02 Thread no-reply
Forum: CFEngine Help Subject: Re: getindices from array problems Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,27630,27631#msg-27631 The servers attribute in the copy_from body can be a list of servers. If the first server does not answer the next server in the list

getindices from array problems

2012-10-02 Thread jose nuno neto
Hellos I am beginning with Cfengine and trying to setup a method to validate a list of servers to download files from, come up with this method, from a slist of servers, do a file copy check, add to an array of servers. Up to here seems ok But when I try to read from the array don't get any data,