Browse Source

Use iteritems() instead of items().

Signed-off-by: René Jochum <rene@jochums.at>
master
René Jochum 9 years ago
parent
commit
a013b79027
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      openssh/auth.sls

+ 1
- 1
openssh/auth.sls View File

{%- from "openssh/map.jinja" import openssh with context -%} {%- from "openssh/map.jinja" import openssh with context -%}
{%- set openssh_pillar = pillar.get('openssh', {}) -%} {%- set openssh_pillar = pillar.get('openssh', {}) -%}
{%- set auth = openssh_pillar.get('auth', {}) -%} {%- set auth = openssh_pillar.get('auth', {}) -%}
{%- for user,keys in auth.items() -%}
{%- for user,keys in auth.iteritems() -%}
{%- for key in keys -%} {%- for key in keys -%}
{% if 'present' in key and key['present'] %} {% if 'present' in key and key['present'] %}
{{ key['name'] }}: {{ key['name'] }}:

Loading…
Cancel
Save