fixed bug in tools.NewEtcdClientStartServerIfNecessary

pull/6/head
Mike Danese 2014-12-03 11:53:56 -08:00
parent 7aaf76af6e
commit a98faa1f62
1 changed files with 1 additions and 1 deletions

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