From a5769a9c99f2f8b37a645b33af21e4c526891bcd Mon Sep 17 00:00:00 2001 From: Christoph Blecker Date: Tue, 28 Mar 2017 08:06:39 -0700 Subject: [PATCH] Fix govet error in consul provider --- builtin/providers/consul/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/consul/config.go b/builtin/providers/consul/config.go index 959293f84..99897505d 100644 --- a/builtin/providers/consul/config.go +++ b/builtin/providers/consul/config.go @@ -52,7 +52,7 @@ func (c *Config) Client() (*consulapi.Client, error) { } else { username = c.HttpAuth } - config.HttpAuth = &consulapi.HttpBasicAuth{username, password} + config.HttpAuth = &consulapi.HttpBasicAuth{Username: username, Password: password} } if c.Token != "" {