Use v2.0.0 of mq-golang now it has been created (#159)
* Use v2.0.0 of mq-golang now it has been created * do a strip vendor
This commit is contained in:
committed by
Stephen Marshall
parent
59eaa9c7d2
commit
e4f02d55cf
3
vendor/github.com/prometheus/common/config/http_config.go
generated
vendored
3
vendor/github.com/prometheus/common/config/http_config.go
generated
vendored
@@ -85,9 +85,6 @@ func (c *HTTPClientConfig) Validate() error {
|
||||
if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) {
|
||||
return fmt.Errorf("at most one of basic_auth, bearer_token & bearer_token_file must be configured")
|
||||
}
|
||||
if c.BasicAuth != nil && c.BasicAuth.Username == "" {
|
||||
return fmt.Errorf("basic_auth requires a username")
|
||||
}
|
||||
if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") {
|
||||
return fmt.Errorf("at most one of basic_auth password & password_file must be configured")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user