From 68bf1f1837e20570fba868f38a25819a7e9badb0 Mon Sep 17 00:00:00 2001 From: Boris Zanetti Date: Thu, 27 Apr 2017 08:37:24 +0200 Subject: [PATCH] fix OSPF When check --- roles/network_plugin/calico/rr/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/network_plugin/calico/rr/tasks/main.yml b/roles/network_plugin/calico/rr/tasks/main.yml index 7b558d2fc..2f4c00d31 100644 --- a/roles/network_plugin/calico/rr/tasks/main.yml +++ b/roles/network_plugin/calico/rr/tasks/main.yml @@ -83,7 +83,7 @@ }' delegate_to: "{{groups['etcd'][0]}}" with_items: calico_ospf_peers - when: calico_ospf_peers|length > 0 + when: (calico_ospf_peers is defined and calico_ospf_peers|length > 0) - meta: flush_handlers