Merge "Treat 404 as success when deleting segments"
This commit is contained in:
commit
25e23988b3
@ -2473,9 +2473,10 @@ class SwiftService(object):
|
||||
def _delete_segment(conn, container, obj, results_queue=None):
|
||||
results_dict = {}
|
||||
try:
|
||||
conn.delete_object(container, obj, response_dict=results_dict)
|
||||
res = {'success': True}
|
||||
conn.delete_object(container, obj, response_dict=results_dict)
|
||||
except Exception as err:
|
||||
if not isinstance(err, ClientException) or err.http_status != 404:
|
||||
traceback, err_time = report_traceback()
|
||||
logger.exception(err)
|
||||
res = {
|
||||
|
Loading…
Reference in New Issue
Block a user