fix iteritems() with items()

This commit is contained in:
Niels Abspoel
2017-08-14 13:15:30 +02:00
parent d6389b8a24
commit e2973c644d
+1 -1
View File
@@ -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__ %}