-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
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.
- caused by
-
ZBXNEXT-8078 Remove unnecessary new line for each element in array for export .yaml templates
-
- Closed
-