2
0

Handle other non-iterable values like int/float.

This commit is contained in:
Matthew Richardson 2018-07-01 22:09:34 +01:00
parent c363aa9e04
commit aff75ce8ac

View File

@ -1250,13 +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 %}
{%- if cfg_minion[configname] is iterable and cfg_minion[configname] is not string %}
{{ configname }}:
{%- for item in cfg_minion[configname] %}
- {{ item }}
{%- endfor -%}
{%- else %}
{{ configname }}: {{ cfg_minion[configname]|json }}
{%- endif %}
{%- endif %}
{%- endfor %}