Merge pull request #13121 from cblecker/consul-vet-fix
Fix govet error in consul provider
This commit is contained in:
commit
391fbbe9d8
|
@ -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 != "" {
|
||||
|
|
Loading…
Reference in New Issue