On May 12, 2022, at 14:06, Ed Leafe ed@leafe.com wrote:
nm = new_obj_name or utils.get_name(obj) uri = "/%s/%s" % (utils.get_name(new_container), nm) copy_from = "/%s/%s" % (utils.get_name(container), utils.get_name(obj)) headers = {"X-Copy-From": copy_from, "Content-Length": "0"} if content_type: headers["Content-Type"] = content_type resp, resp_body = self.api.method_put(uri, headers=headers) return resp.headers.get("etag")
Ugh, that totally messed the formatting. Who the hell runs this email list????
Here's the code as it should be: https://github.com/pycontribs/pyrax/blob/master/pyrax/object_storage.py#L599...
-- Ed Leafe