diff --git a/keepalived/files/default/keepalived.conf.tmpl.jinja b/keepalived/files/default/keepalived.conf.tmpl.jinja index 0d039d8..c2741ec 100644 --- a/keepalived/files/default/keepalived.conf.tmpl.jinja +++ b/keepalived/files/default/keepalived.conf.tmpl.jinja @@ -6,5 +6,5 @@ {%- from "keepalived/macro.jinja" import print_config %} {%- set sections = ['global_defs', 'vrrp_script', 'vrrp_instance', 'virtual_server'] %} {%- for section in sections %} -{{ print_config({ section: config[section] }) }} +{{ print_config({ section: config[section]|d({}) }) }} {%- endfor %}