mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Merge pull request #9044 from kdelee/awx_silent_delete_conflict
silent_delete also needs to handle Confict Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -25,9 +25,11 @@ class Base(Page):
|
|||||||
return self.delete()
|
return self.delete()
|
||||||
except (exc.NoContent, exc.NotFound, exc.Forbidden):
|
except (exc.NoContent, exc.NotFound, exc.Forbidden):
|
||||||
pass
|
pass
|
||||||
except exc.BadRequest as e:
|
except (exc.BadRequest, exc.Conflict) as e:
|
||||||
if 'Job has not finished processing events' in e.msg:
|
if 'Job has not finished processing events' in e.msg:
|
||||||
pass
|
pass
|
||||||
|
if 'Resource is being used' in e.msg:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user