diff options
author | Thomas O'Dowd <tpodowd@geminimobile.com> | 2012-03-26 12:40:38 +0900 |
---|---|---|
committer | Thomas O'Dowd <tpodowd@geminimobile.com> | 2012-03-26 12:40:38 +0900 |
commit | 5728d3909a7f326bc2537bdfd02828f6b2f3afbf (patch) | |
tree | a756c177137e9c5f2fba0da1647c7c91ae77d92a | |
parent | d21fc68da99c7aecfd7b13d16e50bb1ba540c5ea (diff) | |
download | boto-5728d3909a7f326bc2537bdfd02828f6b2f3afbf.tar.gz |
Fix typo in XML for bucket location constraint.
- <CreateBucketConstraint> should be <CreateBucketConfiguration>
-rw-r--r-- | boto/s3/connection.py | 4 |
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() |