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

Support string formatted conditions in module configurations

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Agent, Other
    • Labels:
      None
    • Technical Risk:
      Normal

      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

            Assignee:
            tosaario Toni Saario
            Reporter:
            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