Skip to content

Instantly share code, notes, and snippets.

@kmcminn
Created December 12, 2019 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmcminn/8002bddb427ed7afe6f472109ee09ba3 to your computer and use it in GitHub Desktop.
Save kmcminn/8002bddb427ed7afe6f472109ee09ba3 to your computer and use it in GitHub Desktop.
diff gcs/client.py
diff --git a/gcs_sa/gcs/client.py b/gcs_sa/gcs/client.py
index bd49432..61d9b5f 100644
--- a/gcs_sa/gcs/client.py
+++ b/gcs_sa/gcs/client.py
@@ -45,7 +45,7 @@ class GCSClientPool():
self.lock.acquire()
if len(self.clients) < self.pool_size:
LOG.debug("Making new GCS client.")
- self.clients.append(storage.Client(config.get('GCP', 'PROJECT')))
+ self.clients.append(storage.Client(config.get('GCP', 'GCS_PROJECT')))
client = self.clients[self.next_up]
self.next_up += 1
if self.next_up >= self.pool_size - 1:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment