diff --git a/postfix/files/mapping.j2 b/postfix/files/mapping.j2 index 1e564c6..7daf28d 100644 --- a/postfix/files/mapping.j2 +++ b/postfix/files/mapping.j2 @@ -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 %}