Updated to | json for backward compatibility
This commit is contained in:
parent
06859f5fbb
commit
235f677bc6
1 changed files with 4 additions and 4 deletions
|
@ -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 -%}
|
||||
|
|
Loading…
Reference in a new issue