From 8a83230c671b9f1c1f500791e6b2b1810f8919b9 Mon Sep 17 00:00:00 2001 From: Alex Seeholzer Date: Wed, 9 Oct 2024 16:10:58 +0200 Subject: [PATCH] Update credentials.py to test removal of race condition in credentials (#643) --- gcsfs/credentials.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcsfs/credentials.py b/gcsfs/credentials.py index a6e8d371..bbd9ea57 100644 --- a/gcsfs/credentials.py +++ b/gcsfs/credentials.py @@ -180,7 +180,8 @@ def maybe_refresh(self): return # repeat to avoid race (but don't want lock in common case) logger.debug("GCS refresh") self.credentials.refresh(req) - self.apply(self.heads) + # https://github.com/fsspec/filesystem_spec/issues/565 + self.credentials.apply(self.heads) def apply(self, out): """Insert credential headers in-place to a dictionary"""