Merge pull request #3585 from weaveworks/0peers

handle single node case where return peer list from kube-utils is empty
This commit is contained in:
Bryan Boreham authored and GitHub committed 2019-02-04 14:57:13 +00:00
commit 9654df4d50
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