Michael Potter writes:
> I believe you have to pass them as ., e.g.:
>
>edit_line => insert_array_lines("filetest.line")
Yes, I tried as a string but do not fully qualified it, thanks to you
and zzamboni.
Thanks.
--
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu
Forum: Cfengine Help
Subject: Re: Array as bundle parameter
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,19779,19784#msg-19784
Hi Daniel,
> I try to pass an array as bundle parameter without
> success
> edit_line => insert_array_l
Forum: Cfengine Help
Subject: Re: Array as bundle parameter
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,19779,19781#msg-19781
May I do something like this following?
bundle agent filetest
{
vars:
any::
"line[0]" string =>
"line1
line2 with $(cons
Hello, me again ;-)
I try to pass an array as bundle parameter without success, the
following promise reports:
#v+
R: line is $($(line)[$(idx)])
#v-
Seems to work for others[1].
#v+
body common control
{
bundlesequence => { "filetest" };
version => "0.0.2"