summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas O'Dowd <tpodowd@geminimobile.com>2012-03-26 12:40:38 +0900
committerMitch Garnaat <mitch@garnaat.com>2012-03-27 10:23:41 -0700
commit061cc2f9bae5cbe032936dc13940c9aec79502de (patch)
treed212b46fca3329f85c1d44d7b4be2d18983faac4
parent5789491b87e6f7570d87527e6200cf317659827a (diff)
downloadboto-061cc2f9bae5cbe032936dc13940c9aec79502de.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()