Pārlūkot izejas kodu

Merge pull request #2374 from wellbehavedsoftware/fix-2373

etcdtcl: fix etcdctl cluster-health ignores SSL settings
Xiang Li 11 gadi atpakaļ
vecāks
revīzija
ecf7c27697
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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")