From b0aa531297cd28fe52ebebb1991d42c840b0b2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20B=C3=A9rtoli?= Date: Tue, 28 Mar 2017 08:15:46 -0300 Subject: [PATCH] Use join() for iterable values in main.cf --- postfix/files/main.cf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/postfix/files/main.cf b/postfix/files/main.cf index fe6a2b9..6db10a9 100644 --- a/postfix/files/main.cf +++ b/postfix/files/main.cf @@ -8,9 +8,7 @@ {{ parameter }} = {{ value }} {%- elif value is iterable -%} {{ parameter }} = - {%- for v in value %} - {{ v }}, - {%- endfor %} + {{ value | join(', ')}} {%- endif -%} {%- do processed_parameters.append(parameter) %} {%- endif %}