fix: add trim for script in notify

This commit is contained in:
Adrien Waksberg 2022-04-05 11:22:48 +02:00
parent 81dc07a29c
commit c3c1765b11

View file

@ -63,7 +63,7 @@ vrrp_instance {{ vrrp_instance_name }} {
{% endif %}
{% if 'notify' in vrrp_instance %}
{% for state, script in vrrp_instance.notify.items() %}
notify_{{ state }} "{{ script }}"
notify_{{ state }} "{{ script|trim }}"
{% endfor %}
{% endif %}
}