Unverified Commit f99e3b71 authored by Nicolas Rodriguez's avatar Nicolas Rodriguez Committed by GitHub
Browse files

Merge pull request #43 from daks/context-fix

fix: corrected indentation on context in file.managed states
parents ff2d7c79 ef88f3d0
......@@ -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 -%}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment