mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl/cluster_health: set health var when checked healthy
This was a typo.
This commit is contained in:
parent
8d410bdfcb
commit
cd2a2182cf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user