Merge pull request #77 from bawuenet/main_iteration

Improve handling of multiple values in main.cf
This commit is contained in:
Javier Bértoli 2018-09-29 08:42:20 -03:00 committed by GitHub
commit 4fb57c98a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@
{%- if value is number or value is string -%} {%- if value is number or value is string -%}
{{ parameter }} = {{ value }} {{ parameter }} = {{ value }}
{%- elif value is iterable -%} {%- elif value is iterable -%}
{{ parameter }} = {{ value | join(', ')}} {{ parameter }} = {{ value | join('\n') | indent(parameter | length + 3) }}
{%- endif -%} {%- endif -%}
{%- do processed_parameters.append(parameter) %} {%- do processed_parameters.append(parameter) %}
{%- endif %} {%- endif %}