record the parent WFJ ID for job events that originate from a WFJT

This commit is contained in:
Ryan Petrello
2019-09-12 16:07:43 -04:00
parent 60fc952716
commit b5225bd80d
3 changed files with 17 additions and 4 deletions

View File

@@ -184,6 +184,8 @@ class LogstashFormatter(LogstashFormatterBase):
data_for_log[key] = 'Exception `{}` producing field'.format(e)
data_for_log['event_display'] = job_event.get_event_display2()
if hasattr(job_event, 'workflow_job_id'):
data_for_log['workflow_job_id'] = job_event.workflow_job_id
elif kind == 'system_tracking':
data.pop('ansible_python_version', None)