mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Merge pull request #9040 from kdelee/new_teardown_error
When deleting a job sometimes we get this error Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
98b25f619e
@ -25,6 +25,11 @@ class Base(Page):
|
||||
return self.delete()
|
||||
except (exc.NoContent, exc.NotFound, exc.Forbidden):
|
||||
pass
|
||||
except exc.BadRequest as e:
|
||||
if 'Job has not finished processing events' in e.msg:
|
||||
pass
|
||||
else:
|
||||
raise e
|
||||
|
||||
def get_object_role(self, role, by_name=False):
|
||||
"""Lookup and return a related object role by its role field or name.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user