Browse Source

Merge pull request #3697 from mqliang/cluster-health

etcdctl: fix health check condition
Xiang Li 10 years ago
parent
commit
f08d750b0b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcdctl/command/cluster_health.go

+ 1 - 1
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 {