Browse Source

Merge pull request #42 from waynegemmell/patch-2

Context data wrapped with tojson filter.
tags/v0.9.0
Niels Abspoel 5 years ago
parent
commit
ff2d7c790b
No account linked to committer's email address
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      logrotate/jobs.sls

+ 4
- 4
logrotate/jobs.sls View File

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

Loading…
Cancel
Save