api: use committed blueprint in POST /compose
lorax-composer apparently doesn't use blueprint from workspace to create a new compose. This commit implements the same behaviour.
This commit is contained in:
parent
24faab8c18
commit
ad7650384e
1 changed files with 1 additions and 1 deletions
|
|
@ -1237,7 +1237,7 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request
|
|||
}
|
||||
}
|
||||
|
||||
bp, _ := api.store.GetBlueprint(cr.BlueprintName)
|
||||
bp := api.store.GetBlueprintCommitted(cr.BlueprintName)
|
||||
|
||||
if bp != nil {
|
||||
err := api.store.PushCompose(reply.BuildID, bp, cr.ComposeType, uploadTarget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue