From a2d453ad142b2e0edd5ead88b832c3d400faa3d6 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Tue, 2 May 2017 17:24:45 -0700 Subject: [PATCH] Fix error check for consul skip tls verify support --- command/agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/agent.go b/command/agent/agent.go index 8080591e6..967740ce0 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -691,7 +691,7 @@ func (a *Agent) setupConsul(consulConfig *config.ConsulConfig) error { } // Determine version for TLSSkipVerify - if self, err := client.Agent().Self(); err != nil { + if self, err := client.Agent().Self(); err == nil { a.consulSupportsTLSSkipVerify = consulSupportsTLSSkipVerify(self) }