1
0
Fork 0
mirror of synced 2024-12-21 21:51:09 -05:00

fix: corrected indentation on context in file.managed states

This commit is contained in:
Eric Veiras Galisson 2019-04-11 15:04:32 +02:00
parent ff2d7c790b
commit ef88f3d047

View file

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