Skip to content

Commit

Permalink
fixed bug in tools.NewEtcdClientStartServerIfNecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedanese committed Dec 3, 2014
1 parent 7aaf76a commit a98faa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tools/etcd_tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a98faa1

Please sign in to comment.