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:
Frits 2015-10-07 14:12:59 -07:00
parent 772c5a5b5b
commit f0d9b9027b

View File

@ -12,7 +12,7 @@
global_defs {
notification_email {
{%- 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 }}
{%- endfor %}
{%- endif %}