Fix keepalived.jinja template
This should be a list (of email addresses) and the template expects a dictionary. If you think it should be a dictionary, please update the pillar example to reflect that.
This commit is contained in:
parent
772c5a5b5b
commit
f0d9b9027b
@ -12,7 +12,7 @@
|
|||||||
global_defs {
|
global_defs {
|
||||||
notification_email {
|
notification_email {
|
||||||
{%- if 'notification_emails' in salt['pillar.get']('keepalived:global_defs') %}
|
{%- if 'notification_emails' in salt['pillar.get']('keepalived:global_defs') %}
|
||||||
{%- for email in salt['pillar.get']('keepalived:global_defs:notification_emails', {}).iteritems() %}
|
{%- for email in salt['pillar.get']('keepalived:global_defs:notification_emails', []) %}
|
||||||
{{ email }}
|
{{ email }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user