Browse Source

etcdctl/cluster_health: set health var when checked healthy

This was a typo.
Yicheng Qin 10 years ago
parent
commit
224755855d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcdctl/command/cluster_health.go

+ 1 - 1
etcdctl/command/cluster_health.go

@@ -73,7 +73,7 @@ func handleClusterHealth(c *cli.Context) {
 
 
 				checked = true
 				checked = true
 				if result.Health == "true" {
 				if result.Health == "true" {
-					checked = true
+					health = true
 					fmt.Printf("member %s is healthy: got healthy result from %s\n", m.ID, url)
 					fmt.Printf("member %s is healthy: got healthy result from %s\n", m.ID, url)
 				} else {
 				} else {
 					fmt.Printf("member %s is unhealthy: got unhealthy result from %s\n", m.ID, url)
 					fmt.Printf("member %s is unhealthy: got unhealthy result from %s\n", m.ID, url)