From ce0e3e0e8dd7302218db392f2d06d76f7429dd1b Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 31 Oct 2016 12:43:45 -0400 Subject: [PATCH] Add missing parameter on RADOS storage Fixes Python error that results from the missing parameter --- storage/cloud.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/storage/cloud.py b/storage/cloud.py index 35ec743d7..e4646ca5f 100644 --- a/storage/cloud.py +++ b/storage/cloud.py @@ -542,16 +542,18 @@ class RadosGWStorage(_CloudStorage): 'is_secure': is_secure, 'calling_format': boto.s3.connection.OrdinaryCallingFormat(), } + super(RadosGWStorage, self).__init__(metric_queue, boto.s3.connection.S3Connection, boto.s3.key.Key, connect_kwargs, upload_params, storage_path, bucket_name, access_key, secret_key) # TODO remove when radosgw supports cors: http://tracker.ceph.com/issues/8718#change-38624 - def get_direct_download_url(self, path, expires_in=60, requires_cors=False): + def get_direct_download_url(self, path, expires_in=60, requires_cors=False, head=False): if requires_cors: return None - return super(RadosGWStorage, self).get_direct_download_url(path, expires_in, requires_cors) + return super(RadosGWStorage, self).get_direct_download_url(path, expires_in, requires_cors, + head) # TODO remove when radosgw supports cors: http://tracker.ceph.com/issues/8718#change-38624 def get_direct_upload_url(self, path, mime_type, requires_cors=True):