mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
fix a bug that caused parent_uuid not to be persisted
This commit is contained in:
parent
4fac608890
commit
46795cc71e
@ -1042,7 +1042,7 @@ class BaseTask(object):
|
||||
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':
|
||||
if self.event_data_key != 'job_id':
|
||||
event_data.pop('parent_uuid', None)
|
||||
should_write_event = False
|
||||
event_data.setdefault(self.event_data_key, self.instance.id)
|
||||
|
Loading…
Reference in New Issue
Block a user