Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions cactus/deployment/s3/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ def get_bucket(self):
:returns: The Bucket if found, None otherwise.
:raises: InvalidCredentials if we can't connect to AWS
"""
buckets = self._get_buckets()
buckets = dict((bucket.name, bucket) for bucket in buckets)
return buckets.get(self.bucket_name)
s3con = self.get_connection()
return s3con.get_bucket(self.bucket_name)

def create_bucket(self):
"""
Expand Down