1
0
Fork 0
mirror of synced 2024-11-17 22:45:34 -05:00

Updated to | json for backward compatibility

This commit is contained in:
waynegemmell 2019-03-11 20:46:15 +02:00 committed by GitHub
parent 06859f5fbb
commit 235f677bc6
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]) | tojson }}
data: {{ value.get('config', []) | tojson }}
path: {{ value.get('path', [key]) | json }}
data: {{ value.get('config', []) | json }}
{% else %}
path: [ {{ key | tojson }} ]
data: {{ value | tojson }}
path: [ {{ key | json }} ]
data: {{ value | json }}
{% endif %}
{% endif %}
{%- endfor -%}