Drop todo / question / conditional

* can safely assume job_created is set
* .. and if it isn't, we want to expose that bug
This commit is contained in:
Jim Ladd
2021-02-24 10:28:23 -08:00
parent ea2afeec1f
commit acfa1c4d1d

View File

@@ -1159,10 +1159,7 @@ class BaseTask(object):
event_data.pop('parent_uuid', None) event_data.pop('parent_uuid', None)
if self.parent_workflow_job_id: if self.parent_workflow_job_id:
event_data['workflow_job_id'] = self.parent_workflow_job_id event_data['workflow_job_id'] = self.parent_workflow_job_id
# Do we have to check if the field exists? if it doesn't event_data['job_created'] = self.job_created
# how will be eventually store the event in the db?
if self.job_created:
event_data['job_created'] = self.job_created
if self.host_map: if self.host_map:
host = event_data.get('event_data', {}).get('host', '').strip() host = event_data.get('event_data', {}).get('host', '').strip()
if host: if host: