1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Update Storage sync_clock to do an unauthenticated GET request to the root S3 URL to prevent 403 errors if the user doesn't have ListBuckets permissions

This commit is contained in:
John Lemp 2022-07-20 16:08:13 -04:00
parent e07f5a0d3e
commit f55ddd3c8f

View file

@ -6,7 +6,7 @@ module Fog
#
def sync_clock
response = begin
get_service
Excon.get("#{@scheme}://#{@host}")
rescue Excon::Errors::HTTPStatusError => error
error.response
end