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

Merge pull request #43 from daks/context-fix

fix: corrected indentation on context in file.managed states
This commit is contained in:
Nicolas Rodriguez 2019-04-11 19:29:22 +02:00 committed by GitHub
commit f99e3b71ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 -%}