File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -486,11 +486,10 @@ def setup_credentials
486
486
elsif c . sts_endpoint_url
487
487
credentials_options [ :client ] = Aws ::STS ::Client . new ( endpoint : c . sts_endpoint_url )
488
488
elsif @region
489
- opt = @s3_region ? { region : @s3_region } : { }
490
- opt [ :http_proxy ] = c . sts_http_proxy if c . sts_http_proxy
491
- opt [ :endpoint_url ] = c . sts_endpoint_url if c . sts_endpoint_url
492
-
493
- credentials_options [ :client ] = Aws ::STS ::Client . new ( **opt )
489
+ opt = @s3_region ? { region : @s3_region } : { }
490
+ opt [ :http_proxy ] = c . sts_http_proxy if c . sts_http_proxy
491
+ opt [ :endpoint_url ] = c . sts_endpoint_url if c . sts_endpoint_url
492
+ credentials_options [ :client ] = Aws ::STS ::Client . new ( **opt )
494
493
end
495
494
options [ :credentials ] = Aws ::AssumeRoleCredentials . new ( credentials_options )
496
495
when @web_identity_credentials
You can’t perform that action at this time.
0 commit comments