Forum: Cfengine Help
Subject: Re: readstringlist in 3.1.0
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,19180,19264#msg-19264
A quick test shows that it is not broken, but there is a bug for lists of
length 1, a patch will be released soon
Forum: Cfengine Help
Subject: Re: readstringlist in 3.1.0
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,19180,19263#msg-19263
Do I understand this correctly? Is list iteration broken in 3.1.0? Is there a
bug I can follow
>>>>> bundlesequence => { setup, atest };
>>>>>>> version => "0.01";
>>>>>>> }
>>>>>>>
>>>>>>> bundle agent setup {
>>>>>>>
>>>>>
}
>>>>>>
>>>>>> bundle agent setup {
>>>>>>
>>>>>> files:
>>>>>>
>>>>>> "/tmp/foo" create => "true", edit_line => maketest;
>>>>>> }
>>&
>
>>>>>"/tmp/foo" create => "true", edit_line => maketest;
>>>>> }
>>>>>
>>>>> bundle edit_line maketest {
>>>>>
>>>>> insert_lines:
>>>>>
>>>>>&quo
>>> }
>>>>
>>>> bundle edit_line maketest {
>>>>
>>>> insert_lines:
>>>>
>>>> "123";
>>>> # "qaz";
>>>> }
>>>>
>>>> bundle agent atest {
>&
se",99,);
"sum" real => sum("words");
reports:
agent::
">>$(words)";
"sum>>$(sum)";
}
On Nov 9, 2010, at 3:22 PM, Michael Potter wrote:
&
It seems that readstringlist in 3.1.0 has trouble reading a single
word/line from a file. The attached self-enclosed bundle will create a
file /tmp/foo with a single word in it. If you run it under 3.0.5, it
successfully reads that single word and reports on it. Under 3.1.0, it
is not able to