浏览代码

Use iteritems() instead of items().

Signed-off-by: René Jochum <rene@jochums.at>
master
René Jochum 9 年前
父节点
当前提交
a013b79027
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      openssh/auth.sls

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

正在加载...
取消
保存