mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
Only save job_created field on JobEvent for the time being
* Once other job event tables are migrated, remove this
This commit is contained in:
@@ -437,6 +437,10 @@ class BasePlaybookEvent(CreatedModifiedModel):
|
|||||||
|
|
||||||
sanitize_event_keys(kwargs, cls.VALID_KEYS)
|
sanitize_event_keys(kwargs, cls.VALID_KEYS)
|
||||||
workflow_job_id = kwargs.pop('workflow_job_id', None)
|
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)
|
event = cls(**kwargs)
|
||||||
if workflow_job_id:
|
if workflow_job_id:
|
||||||
setattr(event, 'workflow_job_id', workflow_job_id)
|
setattr(event, 'workflow_job_id', workflow_job_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user