Просмотр исходного кода

etcdctl:fix health check condition

mqliang 10 лет назад
Родитель
Сommit
b2d92dedae
1 измененных файлов с 1 добавлено и 1 удалено
  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 {