Added additional indentions.
This commit is contained in:
parent
9a3410a34c
commit
306fd72287
@ -14,6 +14,7 @@
|
|||||||
{%- set indent = indent + 2 -%}
|
{%- set indent = indent + 2 -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if data is mapping -%}
|
{%- if data is mapping -%}
|
||||||
|
{%- set indentHolder = indent -%}
|
||||||
{%- for item in data|dictsort -%}
|
{%- for item in data|dictsort -%}
|
||||||
{%- if item[key] in carryovers -%}
|
{%- if item[key] in carryovers -%}
|
||||||
{{- keepalived_config(item[value], carryover=item[key]) -}}
|
{{- keepalived_config(item[value], carryover=item[key]) -}}
|
||||||
@ -24,7 +25,7 @@
|
|||||||
{%- if item[value] is string or item[value] is not iterable -%}
|
{%- if item[value] is string or item[value] is not iterable -%}
|
||||||
{%- set indent = 0 -%}
|
{%- set indent = 0 -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{{- item[key] }} {{ keepalived_config(item[value], recurse=recurse, indent=indent) -}}
|
{{- item[key]|indent(indentHolder, True) }} {{ keepalived_config(item[value], recurse=recurse, indent=indent) -}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user