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:
softwarefactory-project-zuul[bot] 2021-01-08 16:25:54 +00:00 committed by GitHub
commit aa87a99441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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