mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl:fix health check condition
This commit is contained in:
parent
f78a11d468
commit
b2d92dedae
@ -103,7 +103,7 @@ func handleClusterHealth(c *cli.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checked = true
|
checked = true
|
||||||
if result.Health == "true" {
|
if result.Health == "true" || nresult.Health == true {
|
||||||
health = 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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user