Actually print multiple value as described in man 5 virtual
This commit is contained in:
parent
80645badee
commit
573211150f
@ -3,8 +3,9 @@
|
|||||||
{%- macro format_value(key, value) %}
|
{%- macro format_value(key, value) %}
|
||||||
{#- Some settings, like virtual_alias_maps can take multiple values. Handle this case. -#}
|
{#- Some settings, like virtual_alias_maps can take multiple values. Handle this case. -#}
|
||||||
{%- if value is iterable and value is not string -%}
|
{%- if value is iterable and value is not string -%}
|
||||||
{%- for item in value %}
|
{{ key }} {% for item in value -%}
|
||||||
{{ key }} {{ item }}
|
{{ item }}
|
||||||
|
{%- if not loop.last %}, {% endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ key }} {{ value }}
|
{{ key }} {{ value }}
|
||||||
|
Loading…
Reference in New Issue
Block a user