Use join() for iterable values in main.cf

This commit is contained in:
Javier Bértoli 2017-03-28 08:15:46 -03:00
parent 3183fc4351
commit b0aa531297

View File

@ -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 %}