Added null string handler.

This commit is contained in:
Jeff Baskin 2016-10-23 23:19:41 -04:00
parent 50fdd24d42
commit 914bad367c

View File

@ -14,7 +14,7 @@
{%- set groupings = ['vrrp_script', 'vrrp_sync_group', 'vrrp_instance', {%- set groupings = ['vrrp_script', 'vrrp_sync_group', 'vrrp_instance',
'virtual_server_group', 'virtual_server', 'real_server'] -%} 'virtual_server_group', 'virtual_server', 'real_server'] -%}
{%- macro config_entries(data, indents, carryover='') -%} {%- 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' }} {{ data|string|indent(indents, True) }}{{ '\n' }}
{%- else -%} {%- else -%}
{%- if indents != 0 and not carryover -%} {%- if indents != 0 and not carryover -%}