Hi,

On Wed, 9 Dec 2009 23:10:42 -0800, Jean-Noël Rivasseau <[email protected]>
wrote:
> The following promises.cf file:
> 
> body common control
> {
>     bundlesequence => {"configurePhase"};
> }
> 
> bundle agent configurePhase
> {
>         methods:
>                 "any" usebundle => configure1(), ifvarclass =>
> fileexists("/etc/group");
>                 "any" usebundle => configure2(), ifvarclass =>
> fileexists("/etc/fstab");
> }
> 
> bundle agent configure1()
> {
>         reports:
>         linux::
>                 "Hi World";
> 
> }
> 
> bundle agent configure2()
> {
>         reports:
>         linux::
>                 "Hello World";
> }
> 
> does not produce the expected result. Normally as both /etc/group and
> /etc/fstab exist on the system, both configure1 and configure2 should be
> executed. For some reason only configure1 is. The file argument on the
> second ifvarclass does not matter (always fail). If I remove the
ifvarclass
> or use something else than fileexists though, it will work ok.
> 
> Can you please acknowledge this bug, fix it and maybe provide a
workaround
> until the next version ? This bug is quite critical I would say, I am
> running 3.0.2.

Hi,

I just tested this example using the latest version of cfengine from the
SVN trunk, and it works as expected:
R: Hi World
R: Hello World

I guess this bug has been fixed, and will be released in version 3.0.3.

Regards,
Jonathan
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to