Getting the data entry correct.

This commit is contained in:
Jeff Baskin 2016-10-23 19:35:40 -04:00
parent 0404d8a8b9
commit 9de2e18c3e

View File

@ -13,9 +13,9 @@
{%- macro config_entries(data) -%} {%- macro config_entries(data) -%}
{%- if data is mapping -%} {%- if data is mapping -%}
{%- for entry_type in data|dictsort -%} {%- for entry in data|dictsort -%}
{{ entry_type }} { {{ entry[0] }} {
{{ config_entries(data[entry_type]) }} {{ config_entries(entry[1]) }}
}{{ '\n' }} }{{ '\n' }}
{%- endfor -%} {%- endfor -%}
{%- endif -%} {%- endif -%}