From ce986afab33a678a71fd5072e8f12cee4afaecac Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Wed, 7 Mar 2018 00:32:50 +0200 Subject: [PATCH] Fix get etcd client issue --- services/etcd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/etcd.go b/services/etcd.go index 53376e3d2..57bc05207 100644 --- a/services/etcd.go +++ b/services/etcd.go @@ -172,6 +172,9 @@ func IsEtcdMember(ctx context.Context, etcdHost *hosts.Host, etcdHosts []*hosts. return true, nil } } + // reset the list of errors to handle new hosts + listErr = nil + break } if listErr != nil { return false, listErr