Skip to content

Commit cbbbef3

Browse files
committed
introduce Google Cloud Bucket support #51
1 parent ae83a67 commit cbbbef3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ckanext/cloudstorage/storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ def get_url_from_filename(self, rid, filename, content_type=None):
340340
try:
341341
return self.driver.get_object_cdn_url(obj)
342342
except NotImplementedError:
343-
if 'S3' in self.driver_name:
343+
if 'S3' in self.driver_name \
344+
or 'GOOGLE_STORAGE' in self.driver_name:
344345
return urlparse.urljoin(
345346
'https://' + self.driver.connection.host,
346347
'{container}/{path}'.format(

0 commit comments

Comments
 (0)