Permalink
Browse files

Merge pull request #662 from tpodowd/fix_location_constraint

Fix typo in XML for bucket location constraint.
  • Loading branch information...
2 parents 55beb8e + 5728d39 commit 35d52e39dad8d02defcb6019b78430947d5e0275 @garnaat garnaat committed Mar 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 boto/s3/connection.py
View
@@ -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()

0 comments on commit 35d52e3

Please sign in to comment.