Skip to content

Commit

Permalink
Merge pull request #36 from myii/fix/print_config
Browse files Browse the repository at this point in the history
fix(keepalived.conf.tmpl.jinja): fix `has no attribute` error
  • Loading branch information
myii authored Jan 27, 2020
2 parents 3e9bc91 + 4391459 commit e6aed11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keepalived/files/default/keepalived.conf.tmpl.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit e6aed11

Please sign in to comment.