diff options
author | Alan Rominger <arominge@redhat.com> | 2023-07-05 21:37:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 21:37:52 +0200 |
commit | 82abd189277700e7fdd5a799f7de66d5154ce48f (patch) | |
tree | ca672e21f9cdbb83ad000aa55000f3228ce9f292 | |
parent | Added CSRF Origin in settings (#14062) (diff) | |
download | awx-82abd189277700e7fdd5a799f7de66d5154ce48f.tar.xz awx-82abd189277700e7fdd5a799f7de66d5154ce48f.zip |
Fix DELETE 500 KeyError due to eventless model events (#14172)
-rw-r--r-- | awx/main/models/workflow.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/awx/main/models/workflow.py b/awx/main/models/workflow.py index dc9b744a77..3038db2967 100644 --- a/awx/main/models/workflow.py +++ b/awx/main/models/workflow.py @@ -661,7 +661,11 @@ class WorkflowJob(UnifiedJob, WorkflowJobOptions, SurveyJobMixin, JobNotificatio @property def event_processing_finished(self): - return True + return True # workflow jobs do not have events + + @property + def has_unpartitioned_events(self): + return False # workflow jobs do not have events def _get_parent_field_name(self): if self.job_template_id: @@ -914,7 +918,11 @@ class WorkflowApproval(UnifiedJob, JobNotificationMixin): @property def event_processing_finished(self): - return True + return True # approval jobs do not have events + + @property + def has_unpartitioned_events(self): + return False # approval jobs do not have events def send_approval_notification(self, approval_status): from awx.main.tasks.system import send_notifications # avoid circular import |