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' }}