1
0
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:
Ryan Petrello 2019-05-01 10:02:43 -04:00
parent 4fac608890
commit 46795cc71e
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -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)