From: Daira Hopwood Date: Fri, 17 May 2013 17:12:20 +0000 (+0100) Subject: Fix incorrect calls to create and delete S3 buckets in S3Container. refs #1971 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/statistics?a=commitdiff_plain;h=a8f6c37ca3f53c99cd5516324c56bf82c9f263ba;p=tahoe-lafs%2Ftahoe-lafs.git Fix incorrect calls to create and delete S3 buckets in S3Container. refs #1971 Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/storage/backends/cloud/s3/s3_container.py b/src/allmydata/storage/backends/cloud/s3/s3_container.py index 0a9b8af6..3391300a 100644 --- a/src/allmydata/storage/backends/cloud/s3/s3_container.py +++ b/src/allmydata/storage/backends/cloud/s3/s3_container.py @@ -56,10 +56,10 @@ class S3Container(ContainerRetryMixin, ContainerListMixin): return ("<%s %r>" % (self.__class__.__name__, self.container_name,)) def create(self): - return self._do_request('create bucket', self.client.create, self.container_name) + return self._do_request('create bucket', self.client.create_bucket, self.container_name) def delete(self): - return self._do_request('delete bucket', self.client.delete, self.container_name) + return self._do_request('delete bucket', self.client.delete_bucket, self.container_name) def list_some_objects(self, **kwargs): return self._do_request('list objects', self.client.get_bucket, self.container_name, **kwargs)