Merge pull request #2743 from mikedanese/etcd-kubernetes-bug

fixed bug in tools.NewEtcdClientStartServerIfNecessary
This commit is contained in:
bgrant0607 2014-12-04 09:06:27 -08:00
commit 623964456e

View File

@ -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