Skip to content

Commit 3850e39

Browse files
committed
Fixed big when handling bucket edge case
1 parent a899685 commit 3850e39

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cloudbridge/cloud/providers/aws/services.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,8 @@ def get(self, bucket_id):
318318
log.warning("AWS Bucket %s already exists but user doesn't "
319319
"have enough permissions to access the bucket",
320320
bucket_id)
321-
bucket = self.provider.s3_conn.get_bucket(bucket_id,
322-
validate=False)
323-
return AWSBucket(self.provider, bucket)
321+
return AWSBucket(self.provider,
322+
self.provider.s3_conn.Bucket(bucket_id))
324323
# For all other responses, it's assumed that the bucket does not exist.
325324
return None
326325

0 commit comments

Comments
 (0)