Merge pull request #5666 from ryanpetrello/inv-sync-wf

fix a bug that breaks inv sync stdout within workflows

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-01-15 17:03:01 +00:00
committed by GitHub

View File

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