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 %}