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:
parent
d2ceaab7dd
commit
c363aa9e04
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user