mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 17:07:33 -02:30
Fix a minor typo in job events model and restructure a bit to fix 500 error.
This commit is contained in:
@@ -2966,7 +2966,11 @@ class JobJobTasksList(BaseJobEventsList):
|
||||
return ({'detail': 'Parent event not found.'}, -1, status.HTTP_404_NOT_FOUND)
|
||||
parent_task = parent_task[0]
|
||||
|
||||
queryset = JobEvent.start_event_queryset(parent_task)
|
||||
# Some events correspond to a playbook or task starting up,
|
||||
# and these are what we're interested in here.
|
||||
STARTING_EVENTS = ('playbook_on_task_start', 'playbook_on_setup')
|
||||
|
||||
queryset = JobEvent.start_event_queryset(parent_task, STARTING_EVENTS)
|
||||
|
||||
# The data above will come back in a list, but we are going to
|
||||
# want to access it based on the parent id, so map it into a
|
||||
|
||||
Reference in New Issue
Block a user