tahoe_mv.py: when checking success of the DELETE operation, look at the status code from DELETE rather than from the previous PUT. fixes #1255

This commit is contained in:
david-sarah 2010-11-09 17:09:16 -08:00
parent fdf6946669
commit 38a0d3f5fa

View File

@ -66,7 +66,7 @@ def mv(options, mode="move"):
if mode == "move":
# now remove the original
resp = do_http("DELETE", from_url)
if not re.search(r'^2\d\d$', str(status)):
if not re.search(r'^2\d\d$', str(resp.status)):
print >>stderr, format_http_error("Error deleting original after move", resp)
return 2