Skip to content

Commit

Permalink
Ensure instance.vips_excluded is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusbe committed Apr 1, 2022
1 parent 59de04a commit cd60ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/keepalived.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ vrrp_instance {{ name }} {
{{ vip }}
{% endfor %}
}
{% if instance.vips_excluded is defined %}
{% if instance.vips_excluded is defined and instance.vips_excluded|length > 0 %}
virtual_ipaddress_excluded {
{% for vip in instance.vips_excluded %}
{{ vip }}
Expand Down

0 comments on commit cd60ab6

Please sign in to comment.