diff --git a/keepalived/templates/keepalived.jinja b/keepalived/templates/keepalived.jinja index 3509ee3..f476d05 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 %}