fixed bug in tools.NewEtcdClientStartServerIfNecessary
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user