fix: corrected indentation on context in file.managed states

pull/43/head
Eric Veiras Galisson 5 years ago
parent ff2d7c790b
commit ef88f3d047
  1. 8
      logrotate/jobs.sls

@ -22,11 +22,11 @@ logrotate-{{ key }}:
- template: jinja
- context:
{% 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 %}
path: [ {{ key | json }} ]
data: {{ value | json }}
path: [ {{ key | json }} ]
data: {{ value | json }}
{% endif %}
{% endif %}
{%- endfor -%}

Loading…
Cancel
Save