Cfengine Help: Re: Multi-dimensional arrays

2010-10-28 Thread no-reply
Forum: Cfengine Help Subject: Re: Multi-dimensional arrays Author: Igor Link to topic: https://cfengine.com/forum/read.php?3,13991,18938#msg-18938 If i can use "name based" slists in allowconnects/access rules without host2ip - it will be nice for me... but i read thread abou

Cfengine Help: Re: Multi-dimensional arrays

2010-10-28 Thread no-reply
Forum: Cfengine Help Subject: Re: Multi-dimensional arrays Author: Igor Link to topic: https://cfengine.com/forum/read.php?3,13991,18937#msg-18937 I'm trying create "primary" base of hosts (based on domain names of hosts) for use in both: 1) "allowconnects/access" rule

Cfengine Help: Re: Multi-dimensional arrays

2010-10-28 Thread no-reply
Forum: Cfengine Help Subject: Re: Multi-dimensional arrays Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,13991,18936#msg-18936 >From my humblest point of view it seems like you're tryin' to make simple >things a hard way. The "keep it simple&

Cfengine Help: Re: Multi-dimensional arrays

2010-10-28 Thread no-reply
Forum: Cfengine Help Subject: Re: Multi-dimensional arrays Author: Igor Link to topic: https://cfengine.com/forum/read.php?3,13991,18935#msg-18935 Nice, but how i can join this into slist? Like: "results_1" slist => { "$(a[2][$(a_2_idx)])"

Re: Cfengine Help: Re: Multi-dimensional arrays

2010-10-27 Thread Daniel V. Klein
[1][missing])"; "$(a[2]) is missing"; "$(a[2][bletch])"; "$(a[2][gar])"; "$(a[2][missing])"; "the indices of a are $(a_idx)"; "the indices of a[2] are $(a_2_idx)"; "a[$(a_idx)] = $(

Cfengine Help: Re: Multi-dimensional arrays

2010-10-27 Thread no-reply
Forum: Cfengine Help Subject: Re: Multi-dimensional arrays Author: Igor Link to topic: https://cfengine.com/forum/read.php?3,13991,18919#msg-18919 is this implemented? --- Igor ___ Help-cfengine mailing list Help-cfengine@cfengine.org https

Re: Multi-dimensional arrays

2010-01-28 Thread Daniel Dehennin
Le 5991 Septembre 1993, Mark Burgess a envoyé: > Daniel, > > the arrays can indeed be multi-dimensional, the real question is what do you > want to do > with the keys? Get indices applies only to one-dimensional arrays, so what > would you want > to do with another array? > > e.g. getindexlist("H

Re: Multi-dimensional arrays

2010-01-28 Thread Daniel Dehennin
Le 5991 Septembre 1993, Mark Burgess a envoyé: > Daniel, > > the arrays can indeed be multi-dimensional, the real question is what do you > want to do > with the keys? Get indices applies only to one-dimensional arrays, so what > would you want > to do with another array? > > e.g. getindexlist("H

Re: Multi-dimensional arrays

2010-01-26 Thread Mark Burgess
Daniel, the arrays can indeed be multi-dimensional, the real question is what do you want to do with the keys? Get indices applies only to one-dimensional arrays, so what would you want to do with another array? e.g. getindexlist("Hosts","2") to extract a list of the second index? Daniel Deh