From bb9f946361ddabe42e3a59f5a18c1466b8718fe5 Mon Sep 17 00:00:00 2001 From: dark0dave Date: Mon, 27 Nov 2023 18:49:35 +0000 Subject: [PATCH] fix(941): Use default cred over hardcoded ones Signed-off-by: dark0dave --- pyproject.toml | 2 +- storages/backends/gcloud.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 66dded8d..f057f729 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ dropbox = [ "dropbox>=7.2.1; python_version<'3.12'", ] google = [ - "google-cloud-storage>=1.27", + "google-cloud-storage>=2.13", ] libcloud = [ "apache-libcloud", diff --git a/storages/backends/gcloud.py b/storages/backends/gcloud.py index ace69244..55e723a3 100644 --- a/storages/backends/gcloud.py +++ b/storages/backends/gcloud.py @@ -147,7 +147,7 @@ def get_default_settings(self): @property def client(self): if self._client is None: - self._client = Client(project=self.project_id, credentials=self.credentials) + self._client = Client(project=self.project_id) return self._client @property