mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
include job_created field in all job event types
This commit is contained in:
parent
80b08d17e3
commit
f9b439ae82
@ -437,10 +437,6 @@ class BasePlaybookEvent(CreatedModifiedModel):
|
||||
|
||||
sanitize_event_keys(kwargs, cls.VALID_KEYS)
|
||||
workflow_job_id = kwargs.pop('workflow_job_id', None)
|
||||
# TODO: remove once we convert _all_ jobevent tables to
|
||||
# the new partioned format
|
||||
if cls is not JobEvent and 'job_created' in kwargs:
|
||||
del kwargs['job_created']
|
||||
event = cls(**kwargs)
|
||||
if workflow_job_id:
|
||||
setattr(event, 'workflow_job_id', workflow_job_id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user