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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to