瀏覽代碼

Merge pull request #43 from daks/context-fix

fix: corrected indentation on context in file.managed states
tags/v0.9.0
Nicolas Rodriguez 5 年之前
父節點
當前提交
f99e3b71ac
No account linked to committer's email address
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      logrotate/jobs.sls

+ 4
- 4
logrotate/jobs.sls 查看文件

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

Loading…
取消
儲存