mapping.j2: fixed handling of OrderedDict in Python 3
This commit is contained in:
parent
84c64267fa
commit
c432ae23dc
@ -21,6 +21,7 @@
|
||||
{%- else %}
|
||||
{#- Some settings need order, handle OrderedDict #}
|
||||
{% for item in data %}
|
||||
{{ format_value(item.keys()[0], item.values()[0]) }}
|
||||
{%- set key, value = item.popitem() %}
|
||||
{{ format_value(key, value) }}
|
||||
{%- endfor -%}
|
||||
{%- endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user