mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 15:38:06 -03: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:
commit
aa87a99441
@ -25,9 +25,11 @@ class Base(Page):
|
||||
return self.delete()
|
||||
except (exc.NoContent, exc.NotFound, exc.Forbidden):
|
||||
pass
|
||||
except exc.BadRequest as e:
|
||||
except (exc.BadRequest, exc.Conflict) as e:
|
||||
if 'Job has not finished processing events' in e.msg:
|
||||
pass
|
||||
if 'Resource is being used' in e.msg:
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user