Details
-
Type:
Bug
-
Status: Rejected
-
Priority:
Medium
-
Resolution: Done
-
Affects Version/s: 3.6.7, 3.10.2, 3.7.6
-
Fix Version/s: None
-
Component/s: Evaluation
-
Labels:
Description
Since cfengine 3.6 the negate classes option is not working any more for cf-agent.
Really frustrating when trying to test something.
Small example:
body common control { bundlesequence => { "main" }; } bundle agent main { classes: "test" expression => "any"; reports: test:: "test class set"; !test:: "no test class set"; }
Output:
[root@enc ~]# cf-agent --version CFEngine Core 3.6.0 [root@enc ~]# cf-agent -Kf ./negate.cf R: test class set [root@enc ~]# cf-agent -Kf ./negate.cf -Ntest R: test class set [root@enc ~]# cf-agent -Kf ./negate.cf --negate test R: test class set