Skip to content

Commit

Permalink
fix getbytes() usage in make_bucket() API (#1073)
Browse files Browse the repository at this point in the history
Fixes #1072
  • Loading branch information
balamurugana authored Jan 29, 2021
1 parent ecffd08 commit 014651b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def make_bucket(self, bucket_name, location=None, object_lock=False):
if location != "us-east-1":
element = Element("CreateBucketConfiguration")
SubElement(element, "LocationConstraint", location)
body = marshal(element)
body = getbytes(element)
self._url_open(
"PUT",
location,
Expand Down

0 comments on commit 014651b

Please sign in to comment.