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

@ -10,6 +10,7 @@ import (
"path"
"github.com/osbuild/osbuild-composer/internal/distroregistry"
"github.com/osbuild/osbuild-composer/internal/ostree"
"github.com/osbuild/osbuild-composer/internal/blueprint"
"github.com/osbuild/osbuild-composer/internal/distro"
@ -145,7 +146,7 @@ func main() {
manifest, err := imageType.Manifest(composeRequest.Blueprint.Customizations,
distro.ImageOptions{
Size: imageType.Size(0),
OSTree: distro.OSTreeImageOptions{
OSTree: ostree.RequestParams{
Ref: composeRequest.OSTree.Ref,
Parent: composeRequest.OSTree.Parent,
URL: composeRequest.OSTree.URL,