Pārlūkot izejas kodu

Merge pull request #154 from bbinet/fix-long-line-issue

Use json serializer instead of yaml to fix serialization of long lines
pull/189/head
Filip Pytloun pirms 5 gadiem
vecāks
revīzija
9a11f88aeb
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      linux/system/file.sls

+ 2
- 2
linux/system/file.sls Parādīt failu

@@ -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 %}
@@ -25,7 +25,7 @@ linux_file_{{ file_name }}:
- template: {{ file.template }}
{%- 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 %}

Notiek ielāde…
Atcelt
Saglabāt