diff --git a/pkg/tools/etcd_tools.go b/pkg/tools/etcd_tools.go index 89dec805fff..8e332a9c535 100644 --- a/pkg/tools/etcd_tools.go +++ b/pkg/tools/etcd_tools.go @@ -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