From a98faa1f6233690b5ffbaaee16982898259583c8 Mon Sep 17 00:00:00 2001 From: Mike Danese Date: Wed, 3 Dec 2014 11:53:56 -0800 Subject: [PATCH] fixed bug in tools.NewEtcdClientStartServerIfNecessary --- pkg/tools/etcd_tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tools/etcd_tools.go b/pkg/tools/etcd_tools.go index 89dec805fffee..8e332a9c53599 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