mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #2861 from barakmich/2859
etcdserver: fix go vet. Fixes #2859
This commit is contained in:
commit
c951c22fff
@ -232,7 +232,10 @@ func getVersion(m *Member, tr *http.Transport) (*version.Versions, error) {
|
||||
// etcd 2.0 does not have version endpoint on peer url.
|
||||
if resp.StatusCode == http.StatusNotFound {
|
||||
resp.Body.Close()
|
||||
return &version.Versions{"2.0.0", "2.0.0"}, nil
|
||||
return &version.Versions{
|
||||
Server: "2.0.0",
|
||||
Cluster: "2.0.0",
|
||||
}, nil
|
||||
}
|
||||
|
||||
b, err := ioutil.ReadAll(resp.Body)
|
||||
|
Loading…
x
Reference in New Issue
Block a user