From 5e4e5d8b4a2d811fa4e65f5e563e9522c1de5776 Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Sun, 23 Oct 2016 23:12:25 -0400 Subject: [PATCH] Added null string handler. --- keepalived/templates/keepalived.jinja | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keepalived/templates/keepalived.jinja b/keepalived/templates/keepalived.jinja index ebe4019..d752f04 100644 --- a/keepalived/templates/keepalived.jinja +++ b/keepalived/templates/keepalived.jinja @@ -29,7 +29,9 @@ {{ carryover|indent(indents, True) }}{{ ' ' }} {%- endif -%} {{ entry[0]|indent(indents, True) }} + {%- if entry[1] is defined -%} {{- config_entries(entry[1], indents + 2) -}} + {%- endif -%} {%- endif -%} {%- endfor -%} {%- else -%}