On Fri, 31 Aug 2012 20:00:22 +0200 (CEST) neilhwatson wrote:
> AFAIK it is not possible to call out a single element in a list.
I don't endorse it, but I've heard you can use a file with
grep/head/tail to do this ;)
Ted
___
Help-cfengine mailing list
Forum: CFEngine Help
Subject: Re: List element extraction fails
Author: m...@last.fm
Link to topic: https://cfengine.com/forum/read.php?3,27162,27190#msg-27190
Ah - that's the key distinction, I think.
Both "public" and "private" are arrays populated by the "regextract" function,
which assigns r
Forum: CFEngine Help
Subject: Re: List element extraction fails
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27162,27184#msg-27184
I do not see where 'public' is defined. However, the syntax shown in your
example is an array (associative) not a list.
Forum: CFEngine Help
Subject: Re: List element extraction fails
Author: m...@last.fm
Link to topic: https://cfengine.com/forum/read.php?3,27162,27180#msg-27180
If that's the case, I'm missing something. I don't understand the difference
between:-
"private_ip" string => "$(private[2])";
wher
Forum: CFEngine Help
Subject: Re: List element extraction fails
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,27162,27163#msg-27163
AFAIK it is not possible to call out a single element in a list.
___
Help-cfengine mailing lis