Browse Source

fix iteritems() with items()

tags/v0.57.0
Niels Abspoel 7 years ago
parent
commit
e2973c644d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      salt/map.jinja

+ 1
- 1
salt/map.jinja View File

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

Loading…
Cancel
Save