handle single node case where return peer list from kube-utils is empty

fixes side affet introduced in #3454
This commit is contained in:
Murali Reddy committed 2019-01-18 01:06:37 +05:30
1 parent 1bf07d86aa
commit 17b45d9efa
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,7 @@ router_bridge_opts() {
}
if [ -z "$KUBE_PEERS" ]; then
if ! KUBE_PEERS=$(/home/weave/kube-utils) || [ -z "$KUBE_PEERS" ]; then
if ! KUBE_PEERS=$(/home/weave/kube-utils); then
echo Failed to get peers >&2
exit 1
fi