From f55ddd3c8ff05fb46e61e77a0bb1a41fc399c3ef Mon Sep 17 00:00:00 2001 From: John Lemp Date: Wed, 20 Jul 2022 16:08:13 -0400 Subject: [PATCH] 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 --- lib/fog/aws/requests/storage/sync_clock.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/aws/requests/storage/sync_clock.rb b/lib/fog/aws/requests/storage/sync_clock.rb index aad5d3bec..defb6d890 100644 --- a/lib/fog/aws/requests/storage/sync_clock.rb +++ b/lib/fog/aws/requests/storage/sync_clock.rb @@ -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