فهرست منبع

etcdtcl: fix etcdctl cluster-health ignores SSL settings

etcdctl reconnects to the leader, but was not picking up ssl settings in this
case, which causes it to show unhealthy when this is not the case.

Fixes #2373
James Pharaoh 11 سال پیش
والد
کامیت
05ecdbc617
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      etcdctl/command/cluster_health.go

+ 1 - 0
etcdctl/command/cluster_health.go

@@ -54,6 +54,7 @@ func handleClusterHealth(c *cli.Context) {
 
 	// is raft stable and making progress?
 	client = etcd.NewClient([]string{ep})
+	client.SetTransport(tr)
 	resp, err := client.Get("/", false, false)
 	if err != nil {
 		fmt.Println("cluster is unhealthy")