From 4e2516367db34d3d0995eea07ee0225331579c97 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 2 Jan 2021 16:16:41 +0100 Subject: [PATCH] updated dovecot state --- states/dovecot/files/config.j2 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 %}