Tried adding the data information.
This commit is contained in:
parent
56aabbb31a
commit
12a9447c00
@ -12,10 +12,12 @@
|
|||||||
merge=True) %}
|
merge=True) %}
|
||||||
|
|
||||||
{%- macro config_entries(data, indents) -%}
|
{%- macro config_entries(data, indents) -%}
|
||||||
{%- if data is mapping -%}
|
{%- if data is string or data is number -%}
|
||||||
|
{{- " " }}{{ data }}
|
||||||
|
{%- elif data is mapping -%}
|
||||||
{%- for entry in data|dictsort -%}
|
{%- for entry in data|dictsort -%}
|
||||||
{{ entry[0]|indent(indents, True) }} {
|
{{ entry[0]|indent(indents, True) }} {
|
||||||
{{ config_entries(entry[1], indents + 2) }}
|
{{- config_entries(entry[1], indents + 2) -}}
|
||||||
{{ '}'|indent(indents, True) }}{{ '\n' }}
|
{{ '}'|indent(indents, True) }}{{ '\n' }}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user