diff --git a/storage/s3.py b/storage/s3.py index 486c08313..252e58c6d 100644 --- a/storage/s3.py +++ b/storage/s3.py @@ -36,7 +36,7 @@ class S3Storage(Storage): def __init__(self, storage_path, s3_access_key, s3_secret_key, s3_bucket): self._initialized = False - self._bucket = s3_bucket + self._bucket_name = s3_bucket self._access_key = s3_access_key self._secret_key = s3_secret_key self._root_path = storage_path @@ -47,7 +47,7 @@ class S3Storage(Storage): if not self._initialized: self._s3_conn = boto.s3.connection.S3Connection(self._access_key, self._secret_key) - self._s3_bucket = self._s3_conn.get_bucket(self._s3_bucket) + self._s3_bucket = self._s3_conn.get_bucket(self._bucket_name) self._initialized = True def _debug_key(self, key):