Actually print multiple value as described in man 5 virtual

This commit is contained in:
Gilles Dartiguelongue 2016-06-20 18:40:48 +02:00
parent 80645badee
commit 573211150f

View File

@ -3,8 +3,9 @@
{%- macro format_value(key, value) %}
{#- Some settings, like virtual_alias_maps can take multiple values. Handle this case. -#}
{%- if value is iterable and value is not string -%}
{%- for item in value %}
{{ key }} {{ item }}
{{ key }} {% for item in value -%}
{{ item }}
{%- if not loop.last %}, {% endif %}
{%- endfor %}
{%- else -%}
{{ key }} {{ value }}