瀏覽代碼

Use items() in lieu of iteritems()

The iteritems dictionary method has been removed in Python 3 and using
items() is typically no problem in our case due to the fact that
dictionaries are rather small.

This fixes #15
master
Wolodja Wentland 9 年之前
父節點
當前提交
624700a372
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      logrotate/jobs.sls

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

@@ -5,7 +5,7 @@
include:
- logrotate

{% for key,value in jobs.iteritems() %}
{% for key,value in jobs.items() %}
logrotate_{{key}}:
file.managed:
- name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }}

Loading…
取消
儲存