kojiapi: return BuildID from status route
This is no longer returned when creating a compose, as it is obtained asynchronously. The TaskID is still returned, and is always set to 0. This is not right, and should either be fixed or dropped. The caller should know the TaskID (if they have one), so this is redundant and currently unused.
This commit is contained in:
parent
c777a18df0
commit
654daf96c1
3 changed files with 52 additions and 9 deletions
|
|
@ -34,6 +34,7 @@ type ComposeResponse struct {
|
|||
// ComposeStatus defines model for ComposeStatus.
|
||||
type ComposeStatus struct {
|
||||
ImageStatuses []ImageStatus `json:"image_statuses"`
|
||||
KojiBuildId *int `json:"koji_build_id,omitempty"`
|
||||
KojiTaskId int `json:"koji_task_id"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,6 +147,9 @@ components:
|
|||
koji_task_id:
|
||||
type: integer
|
||||
example: 203143
|
||||
koji_build_id:
|
||||
type: integer
|
||||
example: 42
|
||||
ComposeLogs:
|
||||
required:
|
||||
- image_logs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue