Explorar o código

etcdctl:fix health check condition

mqliang %!s(int64=10) %!d(string=hai) anos
pai
achega
b2d92dedae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      etcdctl/command/cluster_health.go

+ 1 - 1
etcdctl/command/cluster_health.go

@@ -103,7 +103,7 @@ func handleClusterHealth(c *cli.Context) {
 				}
 
 				checked = true
-				if result.Health == "true" {
+				if result.Health == "true" || nresult.Health == true {
 					health = true
 					fmt.Printf("member %s is healthy: got healthy result from %s\n", m.ID, url)
 				} else {