mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
allow for runner setting parent_uuid
* Previously, parent_uuid was expected only on events generated for a Job run. Now, there maybe a parent_uuid for any job type. AWX does not support parenting events for any job type other than Job.
This commit is contained in:
parent
060585434a
commit
1a6ae6e107
@ -985,6 +985,14 @@ class BaseTask(object):
|
||||
'''
|
||||
Ansible runner callback for events
|
||||
'''
|
||||
|
||||
'''
|
||||
Ansible runner puts a parent_uuid on each event, no matter what the type.
|
||||
AWX only saves the parent_uuid if the event is for a Job.
|
||||
'''
|
||||
if event_data.get(self.event_data_key, None):
|
||||
if event_data[self.event_data_key] != 'job_id':
|
||||
event_data.pop('parent_uuid', None)
|
||||
should_write_event = False
|
||||
dispatcher = CallbackQueueDispatcher()
|
||||
event_data.setdefault(self.event_data_key, self.instance.id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user