From 7e9901dc478a54d545402fede317de2e9b1d67c1 Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Sun, 23 Oct 2016 20:37:27 -0400 Subject: [PATCH] Add list items. --- keepalived/templates/keepalived.jinja | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/keepalived/templates/keepalived.jinja b/keepalived/templates/keepalived.jinja index 744c54a..0640608 100644 --- a/keepalived/templates/keepalived.jinja +++ b/keepalived/templates/keepalived.jinja @@ -23,6 +23,10 @@ {{ entry[0]|indent(indents, True) }} {{- config_entries(entry[1], indents + 2) -}} {%- endfor -%} + {%- else -%} + {%- for entry in data -%} +{{- config_entries(entry, indents + 2) -}} + {%- endfor -%} {%- endif -%} {%- if indents != 0 -%} {{ '}'|indent(indents - 2, True) }}{{ '\n' }}