1
0
Fork 0
mirror of synced 2024-12-22 06:01:08 -05:00

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
This commit is contained in:
Wolodja Wentland 2015-10-12 17:22:12 +02:00
parent 6b15f6490c
commit 624700a372

View file

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