瀏覽代碼

Merge pull request #330 from aboe76/fix_deprecated_iteritems

fix #296 deprecated iteritems() and replace it with items()
tags/v0.57.0
Niels Abspoel 7 年之前
父節點
當前提交
228f74b660
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      salt/map.jinja

+ 1
- 1
salt/map.jinja 查看文件

@@ -5,7 +5,7 @@
{#- This whole `'dict' in x.__class__.__name__` mess is a
workaround for the missing mapping test in CentOS 6's
ancient Jinja2, see #193 #}
{%- for k,v in b.iteritems() %}
{%- for k,v in b.items() %}
{%- if v is string or v is number %}
{%- do a.update({ k: v }) %}
{%- elif 'dict' not in v.__class__.__name__ %}

Loading…
取消
儲存