Quellcode durchsuchen

Use json serializer instead of yaml to fix serialization of long lines

Yaml serializer splits long lines into multiple lines, which causes salt
parsing of generated yaml to fail.
pull/154/head
Bruno Binet vor 6 Jahren
Ursprung
Commit
da2b13611a
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      linux/system/file.sls

+ 2
- 2
linux/system/file.sls Datei anzeigen

@@ -8,7 +8,7 @@ linux_file_{{ file_name }}:
file.serialize:
- formatter: {{ file.serialize }}
{%- if file.contents is defined %}
- dataset: {{ file.contents|yaml }}
- dataset: {{ file.contents|json }}
{%- elif file.contents_pillar is defined %}
- dataset_pillar: {{ file.contents_pillar }}
{%- endif %}
@@ -22,7 +22,7 @@ linux_file_{{ file_name }}:
- skip_verify: True
{%- endif %}
{%- elif file.contents is defined %}
- contents: {{ file.contents|yaml }}
- contents: {{ file.contents|json }}
{%- elif file.contents_pillar is defined %}
- contents_pillar: {{ file.contents_pillar }}
{%- elif file.contents_grains is defined %}

Laden…
Abbrechen
Speichern