Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-623

Support string formatted conditions in module configurations

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • None
    • Agent, Other
    • None

    Description

      The current format of writing the conditions quickly becomes very difficult to interpret when there are multiple composite conditions stacked. For example a single composite condition:

      enable_if:
        condition: and
        conditions:
          - condition: property
            property: host.os
            equals_property: target.os
          - condition: property
            property: target.osVersion
            equals_value: QEMU
      

      This takes time to understand what is going on here and the same could be written as:

      enable_if: "host.os == target.os && target.osVersion != 'QEMU'"
      

       

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tosaario Toni Saario
            tosaario Toni Saario
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes