From 17cc04c041c1c3b89d63ee6e5e8a142ed9da77b0 Mon Sep 17 00:00:00 2001 From: Florian Ermisch Date: Tue, 18 Aug 2015 16:12:36 +0200 Subject: [PATCH] iteritems() -> items() for python3 --- users/init.sls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/users/init.sls b/users/init.sls index 13317c8..09083e8 100644 --- a/users/init.sls +++ b/users/init.sls @@ -3,7 +3,7 @@ {% set used_sudo = [] %} {% set used_googleauth = [] %} -{%- for name, user in pillar.get('users', {}).iteritems() if user.absent is not defined or not user.absent %} +{%- for name, user in pillar.get('users', {}).items() if user.absent is not defined or not user.absent %} {%- if user == None -%} {%- set user = {} -%} {%- endif -%} @@ -25,7 +25,7 @@ include: {%- endif %} {%- endif %} -{% for name, user in pillar.get('users', {}).iteritems() if user.absent is not defined or not user.absent %} +{% for name, user in pillar.get('users', {}).items() if user.absent is not defined or not user.absent %} {%- if user == None -%} {%- set user = {} -%} {%- endif -%} @@ -330,7 +330,7 @@ users_googleauth-{{ svc }}-{{ name }}: {% endfor %} -{% for name, user in pillar.get('users', {}).iteritems() if user.absent is defined and user.absent %} +{% for name, user in pillar.get('users', {}).items() if user.absent is defined and user.absent %} users_absent_user_{{ name }}: {% if 'purge' in user or 'force' in user %} user.absent: