From 624700a3727fca6f95d1e7600487b572cedd3d40 Mon Sep 17 00:00:00 2001 From: Wolodja Wentland Date: Mon, 12 Oct 2015 17:22:12 +0200 Subject: [PATCH] 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 --- logrotate/jobs.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logrotate/jobs.sls b/logrotate/jobs.sls index a110b4c..fe3a578 100644 --- a/logrotate/jobs.sls +++ b/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] }}