Use iteritems() instead of items().

Signed-off-by: René Jochum <rene@jochums.at>
This commit is contained in:
René Jochum 2015-07-13 15:56:25 +02:00
parent 4e49e73e76
commit a013b79027

View File

@ -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'] }}: