Skip to content

Commit

Permalink
clear members on vsphere retry
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Mar 21, 2017
1 parent 43f66b5 commit 79dbc22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/platform/vsphere/vsphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79dbc22

Please sign in to comment.