distro: remove OSTreeImageOptions type and use ostree.RequestParams

This commit is contained in:
Achilleas Koutsou 2022-01-14 20:38:17 +01:00 committed by Ondřej Budai
parent 102c322ec9
commit f885de4c68
5 changed files with 9 additions and 13 deletions

View file

@ -275,11 +275,11 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
// set default ostree ref, if one not provided
ostreeOptions := ir.Ostree
if ostreeOptions == nil || ostreeOptions.Ref == nil {
imageOptions.OSTree = distro.OSTreeImageOptions{Ref: imageType.OSTreeRef()}
imageOptions.OSTree = ostree.RequestParams{Ref: imageType.OSTreeRef()}
} else if !ostree.VerifyRef(*ostreeOptions.Ref) {
return HTTPError(ErrorInvalidOSTreeRef)
} else {
imageOptions.OSTree = distro.OSTreeImageOptions{Ref: *ostreeOptions.Ref}
imageOptions.OSTree = ostree.RequestParams{Ref: *ostreeOptions.Ref}
}
var parent string