mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
fix a 500 error that can occur when a WorkflowApproval's node is deleted
This commit is contained in:
parent
c819a78a4b
commit
b7e8044d69
@ -699,7 +699,10 @@ class WorkflowApproval(UnifiedJob):
|
||||
|
||||
@property
|
||||
def workflow_job_template(self):
|
||||
return self.unified_job_node.workflow_job.unified_job_template
|
||||
try:
|
||||
return self.unified_job_node.workflow_job.unified_job_template
|
||||
except ObjectDoesNotExist:
|
||||
return None
|
||||
|
||||
@property
|
||||
def workflow_job(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user