From 4391459df8cabb4818e54f54b92d5ca067671956 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Wed, 22 Jan 2020 21:30:54 +0000 Subject: [PATCH] fix(keepalived.conf.tmpl.jinja): fix `has no attribute` error * https://freenode.logbot.info/saltstack-formulas/20200122#c3126298-c3126299 --- keepalived/files/default/keepalived.conf.tmpl.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %}