fix a bug that breaks inv sync stdout within workflows

see: https://github.com/ansible/tower/issues/4068
This commit is contained in:
Ryan Petrello 2020-01-15 10:12:27 -05:00
parent 78e2cd7084
commit 8c8713885b
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -617,6 +617,7 @@ class BaseCommandEvent(CreatedModifiedModel):
kwargs.pop('created', None)
sanitize_event_keys(kwargs, cls.VALID_KEYS)
kwargs.pop('workflow_job_id', None)
event = cls(**kwargs)
event._update_from_event_data()
return event