From a013b790272f66e8617734bf7c12d52a0ee566d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Mon, 13 Jul 2015 15:56:25 +0200 Subject: [PATCH] Use iteritems() instead of items(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: René Jochum --- openssh/auth.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssh/auth.sls b/openssh/auth.sls index 617b117..33a4f12 100644 --- a/openssh/auth.sls +++ b/openssh/auth.sls @@ -3,7 +3,7 @@ include: {%- from "openssh/map.jinja" import openssh with context -%} {%- set openssh_pillar = pillar.get('openssh', {}) -%} {%- set auth = openssh_pillar.get('auth', {}) -%} -{%- for user,keys in auth.items() -%} +{%- for user,keys in auth.iteritems() -%} {%- for key in keys -%} {% if 'present' in key and key['present'] %} {{ key['name'] }}: