mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
awslogs: Replace depreacted WithEndpointResolver usage
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -406,12 +406,11 @@ func newAWSLogsClient(info logger.Info, configOpts ...func(*config.LoadOptions)
|
||||
clientOpts = append(
|
||||
clientOpts,
|
||||
cloudwatchlogs.WithAPIOptions(middleware.AddUserAgentKeyValue("Docker", dockerversion.Version)),
|
||||
func(o *cloudwatchlogs.Options) {
|
||||
o.BaseEndpoint = endpoint
|
||||
},
|
||||
)
|
||||
|
||||
if endpoint != nil {
|
||||
clientOpts = append(clientOpts, cloudwatchlogs.WithEndpointResolver(cloudwatchlogs.EndpointResolverFromURL(*endpoint)))
|
||||
}
|
||||
|
||||
client := cloudwatchlogs.NewFromConfig(cfg, clientOpts...)
|
||||
|
||||
return client, nil
|
||||
|
||||
Reference in New Issue
Block a user