Skip to content

Commit

Permalink
remove debug option from storage client
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowansdabomb committed Oct 22, 2018
1 parent 17f6068 commit 53c4170
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions dispatch/core/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ def generate_signed_url(path, content_type, expires_after_seconds=60):

from google.cloud import storage

obj = os.path.join(settings.GS_LOCATION, path)

if settings.DEBUG:
client = storage.Client().from_service_account_json(settings.GCS_CREDENTIALS_FILE)
else:
client = storage.Client()
client = storage.Client()

bucket = client.get_bucket(settings.GS_STORAGE_BUCKET_NAME)
blob = storage.Blob(obj, bucket)
Expand Down

0 comments on commit 53c4170

Please sign in to comment.