From b2d92dedae0e6a6ec29b985cd63b81c52c285329 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 8b6182bd2..4f2d5f99d 100644 --- a/etcdctl/command/cluster_health.go +++ b/etcdctl/command/cluster_health.go @@ -103,7 +103,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 {