Merge pull request #36 from myii/fix/print_config

fix(keepalived.conf.tmpl.jinja): fix `has no attribute` error
This commit is contained in:
Imran Iqbal 2020-01-27 19:38:17 +00:00 committed by GitHub
commit e6aed1136e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}