From f0d9b9027b8a7a66b01eb4332469aed17afcf33d Mon Sep 17 00:00:00 2001 From: Frits Date: Wed, 7 Oct 2015 14:12:59 -0700 Subject: [PATCH] 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. --- keepalived/templates/keepalived.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keepalived/templates/keepalived.jinja b/keepalived/templates/keepalived.jinja index 2cf7cf2..e0ce914 100644 --- a/keepalived/templates/keepalived.jinja +++ b/keepalived/templates/keepalived.jinja @@ -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 %}