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) {
|
c.client = cwClient.NewFromConfig(awsCreds, func(options *cwClient.Options) {
|
||||||
|
if customResolver != nil {
|
||||||
options.EndpointResolver = customResolver
|
options.EndpointResolver = customResolver
|
||||||
|
}
|
||||||
|
|
||||||
options.ClientLogMode = 0
|
options.ClientLogMode = 0
|
||||||
options.HTTPClient = &http.Client{
|
options.HTTPClient = &http.Client{
|
||||||
// use values from DefaultTransport
|
// use values from DefaultTransport
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue