etcdctl/cluster_health: set health var when checked healthy

This was a typo.
release-2.1
Yicheng Qin 2015-08-21 15:27:35 -07:00
parent 8d410bdfcb
commit cd2a2182cf
1 changed files with 1 additions and 1 deletions

View File

@ -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)