From 9de2e18c3eb898e5bc34275b223eacf7c57211c2 Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Sun, 23 Oct 2016 19:35:40 -0400 Subject: [PATCH] Getting the data entry correct. --- keepalived/templates/keepalived.jinja | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keepalived/templates/keepalived.jinja b/keepalived/templates/keepalived.jinja index 20b95d6..bf582fd 100644 --- a/keepalived/templates/keepalived.jinja +++ b/keepalived/templates/keepalived.jinja @@ -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 -%}