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

Macros to target versions more flexibly

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.12.4, 3.15.1, 3.16.0
    • Component/s: None
    • Labels:

      Description

      Currently the minimum_version macro is avaialble to guard parsing of policy that is newer than a specific version. it would be nice if I could leverage the same power but be more selective in the version targeting.

      bundle agent main
      {
        reports:
      
      @if between_versions(3.12.1, 3.13.1)
          "Between cfengine 3.12.1 and 3.13.1";
      @endif
      
      @if maximum_version(3.12.1)
           "3.12.1 or older";
      @endif
      
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olehermanse Ole Herman Schumacher Elgesem
                Reporter:
                a10042 Nick Anderson
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel