mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 14:09:46 +08:00
Expose the component batch in the API to help in future debugging
This commit is contained in:
@@ -747,6 +747,7 @@ class ComponentBuild(MBSBase):
|
||||
if show_state_url:
|
||||
state_url = get_url_for('component_build', api_version=api_version, id=self.id)
|
||||
json.update({
|
||||
'batch': self.batch,
|
||||
'state_trace': [{'time': _utc_datetime_to_iso(record.state_time),
|
||||
'state': record.state,
|
||||
'state_name': INVERSE_BUILD_STATES[record.state],
|
||||
|
||||
Reference in New Issue
Block a user