Browse Source

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 5 years ago
parent
commit
9a11f88aeb
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      linux/system/file.sls

+ 2
- 2
linux/system/file.sls View File

file.serialize: file.serialize:
- formatter: {{ file.serialize }} - formatter: {{ file.serialize }}
{%- if file.contents is defined %} {%- if file.contents is defined %}
- dataset: {{ file.contents|yaml }}
- dataset: {{ file.contents|json }}
{%- elif file.contents_pillar is defined %} {%- elif file.contents_pillar is defined %}
- dataset_pillar: {{ file.contents_pillar }} - dataset_pillar: {{ file.contents_pillar }}
{%- endif %} {%- endif %}
- template: {{ file.template }} - template: {{ file.template }}
{%- endif %} {%- endif %}
{%- elif file.contents is defined %} {%- elif file.contents is defined %}
- contents: {{ file.contents|yaml }}
- contents: {{ file.contents|json }}
{%- elif file.contents_pillar is defined %} {%- elif file.contents_pillar is defined %}
- contents_pillar: {{ file.contents_pillar }} - contents_pillar: {{ file.contents_pillar }}
{%- elif file.contents_grains is defined %} {%- elif file.contents_grains is defined %}

Loading…
Cancel
Save