Actually print multiple value as described in man 5 virtual
This commit is contained in:
parent
80645badee
commit
573211150f
1 changed files with 3 additions and 2 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue