Pārlūkot izejas kodu

etcdctl:fix health check condition

mqliang 11 gadi atpakaļ
vecāks
revīzija
b2d92dedae
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
 				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 {