Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26899

Missing element markers ("-") in template import difference view

XMLWordPrintable

    • Sprint candidates

      When importing templates, the display of element lists is broken. The list item marker "-" is missing, which makes the YAML difference output invalid or misleading.

      Previously, elements were shown with the proper marker, for example:

        templates:
      +     template: tmpl-01
      +     name: tmpl-01
      +     groups:
      +       - name: Templates
      +     discovery_rules:
      +         name: discovery-rule-01
      +         type: HTTP_AGENT
      +         key: discovery-rule-01
      +         delay: 1h
      +         allow_traps: 'YES'
      +         url: 'http://example.com/'
      +         name: 'discovery-rule-01-{#A}'
      +         type: HTTP_AGENT
      +         key: 'discovery-rule-01[{#A}]'
      +         delay: 1h
      +         allow_traps: 'YES'
      +         url: 'http://example.com/'
      

      Now the same section is displayed without the leading dash, e.g.:

        templates:
      +   -
      +     template: tmpl-01
      +     name: tmpl-01
      +     groups:
      +       -
      +         name: Templates
      +     discovery_rules:
      +       -
      +         name: discovery-rule-01
      +         type: HTTP_AGENT
      +         key: discovery-rule-01
      +         delay: 1h
      +         allow_traps: 'YES'
      +         url: 'http://example.com/'
      +       -
      +         name: 'discovery-rule-01-{#A}'
      +         type: HTTP_AGENT
      +         key: 'discovery-rule-01[{#A}]'
      +         delay: 1h
      +         allow_traps: 'YES'
      +         url: 'http://example.com/'
      

      This regression affects template readability and may cause confusion when reviewing or troubleshooting imported templates.

            zabbix.dev Zabbix Development Team
            sasha Alexander Vladishev
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: