瀏覽代碼

etcdctl/cluster_health: set health var when checked healthy

This was a typo.
Yicheng Qin 11 年之前
父節點
當前提交
224755855d
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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)