From 15f7b736e49933d4d0d75a233e6f3da3f54c7a94 Mon Sep 17 00:00:00 2001 From: mqliang Date: Sat, 17 Oct 2015 09:02:58 +0800 Subject: [PATCH] etcdctl:fix health check condition --- etcdctl/command/cluster_health.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcdctl/command/cluster_health.go b/etcdctl/command/cluster_health.go index d9015afbe..265462a7f 100644 --- a/etcdctl/command/cluster_health.go +++ b/etcdctl/command/cluster_health.go @@ -89,7 +89,7 @@ func handleClusterHealth(c *cli.Context) { } checked = true - if result.Health == "true" { + if result.Health == "true" || nresult.Health == true { health = true fmt.Printf("member %s is healthy: got healthy result from %s\n", m.ID, url) } else {