fix(keepalived.conf.tmpl.jinja): fix has no attribute error

* https://freenode.logbot.info/saltstack-formulas/20200122#c3126298-c3126299
This commit is contained in:
Imran Iqbal 2020-01-22 21:30:54 +00:00
parent 3e9bc91558
commit 4391459df8
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819

View File

@ -6,5 +6,5 @@
{%- from "keepalived/macro.jinja" import print_config %} {%- from "keepalived/macro.jinja" import print_config %}
{%- set sections = ['global_defs', 'vrrp_script', 'vrrp_instance', 'virtual_server'] %} {%- set sections = ['global_defs', 'vrrp_script', 'vrrp_instance', 'virtual_server'] %}
{%- for section in sections %} {%- for section in sections %}
{{ print_config({ section: config[section] }) }} {{ print_config({ section: config[section]|d({}) }) }}
{%- endfor %} {%- endfor %}