From 1cfdd109e49fb9adf0739117919fcd9886fea023 Mon Sep 17 00:00:00 2001 From: Martin Pawlack Date: Wed, 30 Sep 2015 12:38:16 +0200 Subject: [PATCH] fix 2 errors in jinja template --- keepalived/templates/keepalived.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keepalived/templates/keepalived.jinja b/keepalived/templates/keepalived.jinja index 90ab3d1..2cf7cf2 100644 --- a/keepalived/templates/keepalived.jinja +++ b/keepalived/templates/keepalived.jinja @@ -38,7 +38,7 @@ static_ipaddress { # static routes {%- if 'static_routes' in salt['pillar.get']('keepalived') %} -static_route { +static_routes { {%- for route in salt['pillar.get']('keepalived:static_routes', {}).iteritems() %} {{ route}} {%- endfor %} @@ -189,7 +189,7 @@ vrrp_instance {{ instance[1].get('name', instance[0]) }} { } {%- endif %} {%- if 'virtual_routes' in instance[1] %} - virtual_route { + virtual_routes { {%- for virtual_route in instance[1].virtual_routes %} {{ virtual_route }} {%- endfor%}