mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user