fix(inputs.cloudwatch): Verify endpoint is not nil (#12677)
This commit is contained in:
parent
ecfd367a46
commit
c37b5871ac
|
|
@ -193,7 +193,10 @@ func (c *CloudWatch) initializeCloudWatch() error {
|
|||
}
|
||||
|
||||
c.client = cwClient.NewFromConfig(awsCreds, func(options *cwClient.Options) {
|
||||
options.EndpointResolver = customResolver
|
||||
if customResolver != nil {
|
||||
options.EndpointResolver = customResolver
|
||||
}
|
||||
|
||||
options.ClientLogMode = 0
|
||||
options.HTTPClient = &http.Client{
|
||||
// use values from DefaultTransport
|
||||
|
|
|
|||
Loading…
Reference in New Issue