summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas O'Dowd <tpodowd@geminimobile.com>2012-03-26 12:40:38 +0900
committerThomas O'Dowd <tpodowd@geminimobile.com>2012-03-26 12:40:38 +0900
commit5728d3909a7f326bc2537bdfd02828f6b2f3afbf (patch)
treea756c177137e9c5f2fba0da1647c7c91ae77d92a
parentd21fc68da99c7aecfd7b13d16e50bb1ba540c5ea (diff)
downloadboto-5728d3909a7f326bc2537bdfd02828f6b2f3afbf.tar.gz
Fix typo in XML for bucket location constraint.
- <CreateBucketConstraint> should be <CreateBucketConfiguration>
-rw-r--r--boto/s3/connection.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/boto/s3/connection.py b/boto/s3/connection.py
index 211f344e..afdc280f 100644
--- a/boto/s3/connection.py
+++ b/boto/s3/connection.py
@@ -408,8 +408,8 @@ class S3Connection(AWSAuthConnection):
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()