From acfa1c4d1df9eeaf11922430f19ea3be5674ea9c Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Wed, 24 Feb 2021 10:28:23 -0800 Subject: [PATCH] Drop todo / question / conditional * can safely assume job_created is set * .. and if it isn't, we want to expose that bug --- awx/main/tasks.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 6bedba40b4..13cdfdbe37 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1159,10 +1159,7 @@ class BaseTask(object): event_data.pop('parent_uuid', None) if 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 - # how will be eventually store the event in the db? - if self.job_created: - event_data['job_created'] = self.job_created + event_data['job_created'] = self.job_created if self.host_map: host = event_data.get('event_data', {}).get('host', '').strip() if host: