Upgrade, upgrade, upgrade :-)
There was a significant change in the computation of lists in 3.1.0 and
this led to a couple of issues that pulled in two directions and led to
some bugs. I believe all these are fixed in the current svn.
On 12/01/2010 05:13 PM, Daniel Dehennin wrote:
> Hello,
>
> I filled a debian bug report[1] but it may be a better place for this.
>
> The following recipe show that singleton list are not iterated, I must
> add "cf_null" at the end of the list to make it works:
>
> ===== promises.cf
> body common control
> {
> bundlesequence => { "test" };
> version => "0.0.1";
> }
>
> bundle common va
> {
> vars:
>
> "tmpdirs1" slist => { "/tmp" };
> "tmpdirs2" slist => { "/tmp", "/var/tmp", "/usr/tmp" };
> }
>
> bundle agent test
> {
> classes:
> "ok" expression => "any";
>
> vars:
> "x1" slist => { @(va.tmpdirs1) };
> "x2" slist => { @(va.tmpdirs2) };
> "x3" slist => { "foo" };
> "x4" slist => { "bar", "cf_null" };
>
> reports:
>
> ok::
> "X1: $(x1)";
> "X2: $(x2)";
> "X3: $(x3)";
> }
> =====
>
> The output is:
>
> ===== /usr/sbin/cf-agent -K -I
> R: X2: /tmp
> R: X2: /var/tmp
> R: X2: /usr/tmp
> R: X4: bar
> =====
>
> Regards.
>
> Footnotes:
> [1] http://bugs.debian.org/605534
>
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine