소스 검색

Merge pull request #3355 from yichengq/health-var

etcdctl/cluster_health: set health var when checked healthy
Yicheng Qin 10 년 전
부모
커밋
301b7f57c0
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
 				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)