From cd2a2182cf69d124a54570eb08e0e27c134ce709 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Fri, 21 Aug 2015 15:27:35 -0700 Subject: [PATCH] etcdctl/cluster_health: set health var when checked healthy This was a typo. --- 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 f7dd9656b..549a70506 100644 --- a/etcdctl/command/cluster_health.go +++ b/etcdctl/command/cluster_health.go @@ -73,7 +73,7 @@ func handleClusterHealth(c *cli.Context) { checked = true if result.Health == "true" { - checked = true + health = true fmt.Printf("member %s is healthy: got healthy result from %s\n", m.ID, url) } else { fmt.Printf("member %s is unhealthy: got unhealthy result from %s\n", m.ID, url)