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
pull/17/head
Wolodja Wentland 8 years ago
parent 6b15f6490c
commit 624700a372
  1. 2
      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…
Cancel
Save