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) -%}
{%- if data is mapping -%}
{%- for entry_type in data|dictsort -%}
{{ entry_type }} {
{{ config_entries(data[entry_type]) }}
{%- for entry in data|dictsort -%}
{{ entry[0] }} {
{{ config_entries(entry[1]) }}
}{{ '\n' }}
{%- endfor -%}
{%- endif -%}