From 05ecdbc61789bae90e1575aced5b90d5e7547176 Mon Sep 17 00:00:00 2001 From: James Pharaoh Date: Wed, 25 Feb 2015 13:17:55 +0100 Subject: [PATCH] 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 --- etcdctl/command/cluster_health.go | 1 + 1 file changed, 1 insertion(+) diff --git a/etcdctl/command/cluster_health.go b/etcdctl/command/cluster_health.go index eb4d43a08..5a80e7e12 100644 --- a/etcdctl/command/cluster_health.go +++ b/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")