diff options
author | Seth Foster <fosterseth@users.noreply.github.com> | 2024-07-18 15:40:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-18 15:40:58 +0200 |
commit | 853730acb95d406b71a4be3f03dd4296c63bdc1a (patch) | |
tree | 6abd906511d4d6897961cafcc68f31eb45583fd5 /.github/workflows | |
parent | update terminology (#15357) (diff) | |
download | awx-853730acb95d406b71a4be3f03dd4296c63bdc1a.tar.xz awx-853730acb95d406b71a4be3f03dd4296c63bdc1a.zip |
Allow deleting org of a running workflow job (#15374)
Old RBAC system hits DOESNOTEXIST query errors
if a user deletes an org while a workflow job is active.
The error is triggered by
1. starting workflow job
2. delete the org that the workflow job is a part of
3. The workflow changes status (e.g. pending to waiting)
This error message would surface
awx.main.models.rbac.Role.DoesNotExist: Role matching
query does not exist.
The fix is wrap the query in a try catch, and skip
over some logic if the roles don't exist.
---------
Signed-off-by: Seth Foster <fosterbseth@gmail.com>
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions