diff options
author | Thomas O'Dowd <tpodowd@geminimobile.com> | 2012-03-26 12:40:38 +0900 |
---|---|---|
committer | Mitch Garnaat <mitch@garnaat.com> | 2012-03-27 10:23:41 -0700 |
commit | 061cc2f9bae5cbe032936dc13940c9aec79502de (patch) | |
tree | d212b46fca3329f85c1d44d7b4be2d18983faac4 | |
parent | 5789491b87e6f7570d87527e6200cf317659827a (diff) | |
download | boto-061cc2f9bae5cbe032936dc13940c9aec79502de.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() |