cloudapi/v2: support specifying parent ref for ostree requests

This commit is contained in:
Achilleas Koutsou 2022-01-17 14:06:59 +01:00 committed by Ondřej Budai
parent 24b70837c1
commit bfaf0c073b
3 changed files with 88 additions and 74 deletions

View file

@ -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) {