diff --git a/states/dovecot/files/config.j2 b/states/dovecot/files/config.j2 index d2e23b9..ed11488 100644 --- a/states/dovecot/files/config.j2 +++ b/states/dovecot/files/config.j2 @@ -1,11 +1,9 @@ ## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} -{% macro render(key, value) %} +{%- macro render(key, value) -%} {%- if value is mapping %} -{{ key }} { -{%- for k, v in value.items() %} -{{ render(k, v) }} - +{{ key }} { {%- for k, v in value.items() %} + {{ render(k, v) }} {%- endfor %} } {%- elif value is string %}