cloudapi/v2: support specifying parent ref for ostree requests
This commit is contained in:
parent
24b70837c1
commit
bfaf0c073b
3 changed files with 88 additions and 74 deletions
|
|
@ -280,6 +280,9 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
|
|||
if ir.Ostree.Url != nil {
|
||||
ostreeOptions.URL = *ir.Ostree.Url
|
||||
}
|
||||
if ir.Ostree.Parent != nil {
|
||||
ostreeOptions.Parent = *ir.Ostree.Parent
|
||||
}
|
||||
}
|
||||
if imageOptions.OSTree, err = ostree.ResolveParams(ostreeOptions, imageType.OSTreeRef()); err != nil {
|
||||
switch v := err.(type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue