mirror of https://github.com/k3s-io/k3s
fixed bug in tools.NewEtcdClientStartServerIfNecessary
parent
7aaf76af6e
commit
a98faa1f62
|
@ -377,7 +377,7 @@ func checkEtcd(host string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !strings.HasPrefix("etcd", string(body)) {
|
||||
if !strings.HasPrefix(string(body), "etcd") {
|
||||
return fmt.Errorf("unknown server: %s", string(body))
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue