Fix master_tops configuration rendering
This commit is contained in:
parent
eaf9fc98f6
commit
165f2d727c
@ -746,14 +746,21 @@ rosters:
|
|||||||
{%- do default_keys.append('master_tops') %}
|
{%- do default_keys.append('master_tops') %}
|
||||||
master_tops:
|
master_tops:
|
||||||
{%- for master in cfg_master['master_tops'] -%}
|
{%- for master in cfg_master['master_tops'] -%}
|
||||||
{%- if cfg_master['master_tops'][master] is string %}
|
{%- if cfg_master['master_tops'][master] is mapping %}
|
||||||
{{ master }}: {{ cfg_master['master_tops'][master] }}
|
{{ master }}:
|
||||||
{%- else %}
|
|
||||||
{{ master}}:
|
|
||||||
{%- for parameter in cfg_master['master_tops'][master] %}
|
{%- for parameter in cfg_master['master_tops'][master] %}
|
||||||
{{ parameter }}: {{ cfg_master['master_tops'][master][parameter] }}
|
{{ parameter }}: {{ cfg_master['master_tops'][master][parameter] }}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endif -%}
|
{%- elif cfg_master['master_tops'][master] is string %}
|
||||||
|
{{ master }}: {{ cfg_master['master_tops'][master] }}
|
||||||
|
{%- elif cfg_master['master_tops'][master] is iterable %}
|
||||||
|
{{ master }}:
|
||||||
|
{%- for item in cfg_master['master_tops'][master] %}
|
||||||
|
- {{ item }}
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- else %}
|
||||||
|
{{ master }}: {{ cfg_master['master_tops'][master] }}
|
||||||
|
{% endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user