From 7bd06253de1743de46c768ff31a1c89fc0ce4821 Mon Sep 17 00:00:00 2001 From: dark0dave Date: Mon, 22 Jan 2024 16:10:46 +0000 Subject: [PATCH] fix(expiration): Add expiration back Signed-off-by: dark0dave --- storages/backends/gcloud.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/storages/backends/gcloud.py b/storages/backends/gcloud.py index 77b3e144..74a73973 100644 --- a/storages/backends/gcloud.py +++ b/storages/backends/gcloud.py @@ -330,9 +330,13 @@ def url(self, name, parameters=None): quoted_name=_quote(name, safe=b"/~"), ) elif not self.custom_endpoint: - return blob.generate_signed_url(**self.signed_url_extra()) + return blob.generate_signed_url( + expiration=self.expiration, + **self.signed_url_extra() + ) else: return blob.generate_signed_url( + expiration=self.expiration, api_access_endpoint=self.custom_endpoint, **self.signed_url_extra() )