From 914bad367c1da617810cbf0e87475fa834be4c7a Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Sun, 23 Oct 2016 23:19:41 -0400 Subject: [PATCH] Added null string handler. --- keepalived/templates/keepalived.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keepalived/templates/keepalived.jinja b/keepalived/templates/keepalived.jinja index aa530fc..71267c5 100644 --- a/keepalived/templates/keepalived.jinja +++ b/keepalived/templates/keepalived.jinja @@ -14,7 +14,7 @@ {%- set groupings = ['vrrp_script', 'vrrp_sync_group', 'vrrp_instance', 'virtual_server_group', 'virtual_server', 'real_server'] -%} {%- macro config_entries(data, indents, carryover='') -%} - {%- if data is string or data is number or data is not defined -%} + {%- if data is string or data is number or data is none -%} {{ data|string|indent(indents, True) }}{{ '\n' }} {%- else -%} {%- if indents != 0 and not carryover -%}