This seems to work for me. Be clear that

  classes:

    xyz = ( !one !two ... )


means (NOT ONE) OR (NOT TWO) OR ..

Check your logic?

M

Maarten van Ingen wrote:
> Hi,
> 
> I noticed a (parser?)bug when i define a class which depends on multiple
> negates of other classes.
> For example:
> 
> /groups:
> 
>        WORKER_NODE = ( !STORAGE_SERVERS !RESOURCE_BROKERS
> !COMPUTE_SERVERS )/
> 
> In this case WORKER_NODE will never be defined.
> There is a workaround like:
> 
> /groups:
> 
>        NOT_WORKER_NODE = ( STORAGE_SERVERS RESOURCE_BROKERS
> COMPUTE_SERVERS )
>        WORKER_NODE = ( !NOT_WORKER_NODE )/
> 
> It works, but it's not elegant and when you have a mix of classes and
> negates of classes it can become problematic.
> The problem exists at least till 2.1.21.
> 
> Maarten van Ingen
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine

-- 
Mark Burgess

Professor of Network and System Administration
Oslo University College

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  [EMAIL PROTECTED]
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to