Skip to content

Commit

Permalink
Fix typo in XML for bucket location constraint.
Browse files Browse the repository at this point in the history
- <CreateBucketConstraint> should be <CreateBucketConfiguration>
  • Loading branch information
Thomas O'Dowd authored and garnaat committed Mar 27, 2012
1 parent 5789491 commit 061cc2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boto/s3/connection.py
Expand Up @@ -408,8 +408,8 @@ def create_bucket(self, bucket_name, headers=None,
if location == Location.DEFAULT:
data = ''
else:
data = '<CreateBucketConstraint><LocationConstraint>' + \
location + '</LocationConstraint></CreateBucketConstraint>'
data = '<CreateBucketConfiguration><LocationConstraint>' + \
location + '</LocationConstraint></CreateBucketConfiguration>'
response = self.make_request('PUT', bucket_name, headers=headers,
data=data)
body = response.read()
Expand Down

0 comments on commit 061cc2f

Please sign in to comment.