Removed the unwanted exterior brackets.

This commit is contained in:
Jeff Baskin 2016-10-23 20:23:47 -04:00
parent 4d65dc5b40
commit d7a27a99b1

View File

@ -15,14 +15,18 @@
{%- if data is string or data is number -%}
{{- " " }}{{ data }}{{ '\n' }}
{%- else -%}
{%- if indents != 0 -%}
{{- " {\n" -}}
{%- endif -%}
{%- if data is mapping -%}
{%- for entry in data|dictsort -%}
{{ entry[0]|indent(indents, True) }}
{{- config_entries(entry[1], indents + 2) -}}
{%- endfor -%}
{%- endif -%}
{{ '}'|indent(indents, True) }}{{ '\n' }}
{%- if indents != 0 -%}
{{ '}'|indent(indents - 2, True) }}{{ '\n' }}
{%- endif -%}
{%- endif -%}
{%- endmacro -%}