Added additional indentions.

This commit is contained in:
Jeff Baskin 2017-01-20 22:56:08 -05:00
parent 9a3410a34c
commit 306fd72287
2 changed files with 12 additions and 11 deletions

View File

@ -14,6 +14,7 @@
{%- set indent = indent + 2 -%}
{%- endif -%}
{%- if data is mapping -%}
{%- set indentHolder = indent -%}
{%- for item in data|dictsort -%}
{%- if item[key] in carryovers -%}
{{- keepalived_config(item[value], carryover=item[key]) -}}
@ -24,7 +25,7 @@
{%- if item[value] is string or item[value] is not iterable -%}
{%- set indent = 0 -%}
{%- 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 -%}
{%- endfor -%}
{%- else -%}