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

Define negative class in def.json stop working in 3.12.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: High
    • Resolution: Done
    • Affects Version/s: 3.12.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      This is regression in 3.12.1:

      In 3.12.1 stop working define negative classes in def.json like:

      def.json:

      "classes":
      {
      "class_1": "any",
      "class_2": "class_1",
      "class_3": "never",
      "class_negative": "!class_3",
      "class_common": "class_.*",
      
      $cf-promises -v | grep class_
       verbose: Installing augments class 'class_1' (checked 'any') from file '/var/cfengine/inputs/def.json'
       verbose: Installing augments class 'class_2' (checked 'class_1') from file '/var/cfengine/inputs/def.json'
       verbose: Installing augments class 'class_common' (checked 'class_.*') from file '/var/cfengine/inputs/def.json'
      

      Class class_negative absent.

      In 3.12.0 this is works good:

      $ cf-promises -v | grep class_
       ...
        verbose: Installing augments class 'class_1' (checked 'any') from file '/var/cfengine/inputs/def.json'
       verbose: Installing augments class 'class_2' (checked 'class_1') from file '/var/cfengine/inputs/def.json'
       verbose: Installing augments class 'class_negative' (checked '!class_3') from file '/var/cfengine/inputs/def.json'
       verbose: Installing augments class 'class_common' (checked 'class_.*') from file '/var/cfengine/inputs/def.json'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10042 Nick Anderson
                Reporter:
                igorg Igor Goncharenko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel