0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-11-30 19:35:19 +01:00

Handle extra config where value is a list.

This commit is contained in:
Matthew Richardson 2018-06-12 14:39:23 +01:00
parent d2ceaab7dd
commit c363aa9e04

View File

@ -1250,6 +1250,13 @@ alternative.mongo.{{ name }}: {{ value }}
{%- for configname in cfg_minion %}
{%- if configname not in reserved_keys and configname not in default_keys %}
{%- if cfg_minion[configname] is string %}
{{ configname }}: {{ cfg_minion[configname]|json }}
{%- elif cfg_minion[configname] is iterable %}
{{ configname }}:
{%- for item in cfg_minion[configname] %}
- {{ item }}
{%- endfor -%}
{%- endif %}
{%- endif %}
{%- endfor %}