mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #2743 from mikedanese/etcd-kubernetes-bug
fixed bug in tools.NewEtcdClientStartServerIfNecessary
This commit is contained in:
commit
623964456e
@ -377,7 +377,7 @@ func checkEtcd(host string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if !strings.HasPrefix("etcd", string(body)) {
|
if !strings.HasPrefix(string(body), "etcd") {
|
||||||
return fmt.Errorf("unknown server: %s", string(body))
|
return fmt.Errorf("unknown server: %s", string(body))
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user