-
Problem report
-
Resolution: Won't fix
-
Trivial
-
None
-
6.0.20, 6.4.4, 7.0.0alpha3
-
None
-
Zabbix server 6.2.9 on Centos 8 stream
-
Sprint 103 (Aug 2023)
Steps to reproduce:
- select a single template
- Click Export button
- Select Yaml format
Result:
Exported yaml file beginning with:
zabbix_export:
version: '6.2'
date: '2023-08-01T13:08:21Z'
template_groups:
-
uuid: 846977d1dfed4968bc5f8bdb363285bc
name: 'Templates/Operating systems'
{{Also, using yamllint says: }}
1:1 warning missing document start "---" (document-start)
Also, there are a lot of errors because the lines are too long.
Expected:
I expect a Yaml file to begin with three dashes, "- - -" (without the double quotes and without the spaces between the dashes as displayed here (Jira makes it a line otherwise) )
I looked into this and found the Yaml standard.
Turns out, version prior to 1.2 use "- - - " was used to sepearate documents so it makes sense not to start with three dashes when exporting a single template.
See https://yaml.org/spec/1.0/ and search for three dashes and you will find it in section 2.2.
Starting from Yaml standard version 1.2.0 that seems to have changed.
2.2. Structures
YAML uses three dashes (“---”) to separate directives from document content. This also serves to signal the start of a document if no directives are present.
I just thought I bring this to your attention. I hope you find this helpful.
Regards,
Jeroen Baten