Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1589

cf-agent --negate not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 3.6.7, 3.10.2, 3.7.6
    • Fix Version/s: None
    • Component/s: Evaluation
    • Platform:
      Linux
    • Complexity:
      S

      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
      

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  Sander Sander Keemink
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Zendesk Support

                      Summary Panel