Skip to content

Commit 7daaf27

Browse files
committed
fixed indentation error
Signed-off-by: riquemon <[email protected]>
1 parent 0dcf67e commit 7daaf27

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/fluent/plugin/out_s3.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,10 @@ def setup_credentials
486486
elsif c.sts_endpoint_url
487487
credentials_options[:client] = Aws::STS::Client.new(endpoint: c.sts_endpoint_url)
488488
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)
494493
end
495494
options[:credentials] = Aws::AssumeRoleCredentials.new(credentials_options)
496495
when @web_identity_credentials

0 commit comments

Comments
 (0)