On May 12, 2022, at 14:06, Ed Leafe <e...@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-L606


-- Ed Leafe







_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/d0685994-6950-48e6-84e7-308dd357a...@leafe.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to