handle single node case where return peer list from kube-utils is empty
fixes side affet introduced in #3454
This commit is contained in:
1 parent
1bf07d86aa
commit
17b45d9efa
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user