From 79dbc229dc31e1a48e8b2452fcbeda188de684c4 Mon Sep 17 00:00:00 2001 From: Matt DeBoer Date: Tue, 21 Mar 2017 10:01:40 -0700 Subject: [PATCH] clear members on vsphere retry --- pkg/platform/vsphere/vsphere.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/platform/vsphere/vsphere.go b/pkg/platform/vsphere/vsphere.go index 6629fc9..67c8e35 100644 --- a/pkg/platform/vsphere/vsphere.go +++ b/pkg/platform/vsphere/vsphere.go @@ -119,6 +119,7 @@ func (vs *VSphere) ExpectedMembers( timeout := time.Now().Add(MaxWaitForVMAddresses) now := time.Now() for len(members) < len(names) && now.Before(timeout) { + members = []etcd.Member{} for _, name := range names { member := etcd.Member{Name: name, ClientURLs: []string{}, PeerURLs: []string{}} addrs, err := vs.getAddresses(name)