Commit f6a0a5bd authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

fix upstream staging for deletion

parent 772b5b17
......@@ -188,10 +188,11 @@ class PithosTargetHandle(object):
def _move_object(self, objname, etag, del_name):
container = self.endpoint.container
dest = common.OBJECT_DIRSEP + utils.join_objname(container, del_name)
try:
self.endpoint.object_move(
objname,
destination='/%s/%s' % (container, del_name),
destination=dest,
if_etag_match=etag)
except ClientError as e:
if e.status == 404:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment