Browse Source

fix: corrected indentation on context in file.managed states

tags/v0.9.0^2
Eric Veiras Galisson 5 years ago
parent
commit
ef88f3d047
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      logrotate/jobs.sls

+ 4
- 4
logrotate/jobs.sls View File

- template: jinja - template: jinja
- context: - context:
{% if value is mapping %} {% if value is mapping %}
path: {{ value.get('path', [key]) | json }}
data: {{ value.get('config', []) | json }}
path: {{ value.get('path', [key]) | json }}
data: {{ value.get('config', []) | json }}
{% else %} {% else %}
path: [ {{ key | json }} ]
data: {{ value | json }}
path: [ {{ key | json }} ]
data: {{ value | json }}
{% endif %} {% endif %}
{% endif %} {% endif %}
{%- endfor -%} {%- endfor -%}

Loading…
Cancel
Save