Add the rhsm.facts stage.

We initially provide a Facts file that stores the `ApiType`. This is the
API that was used to request the compose.
This commit is contained in:
Simon de Vlieger 2022-08-25 12:09:21 +02:00 committed by Tomáš Hozza
parent dba76a1204
commit c5f335bceb
9 changed files with 111 additions and 16 deletions

View file

@ -2351,6 +2351,9 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request
URL: cr.OSTree.URL,
},
}
options.Facts = &distro.FactsImageOptions{
ApiType: "weldr",
}
packageSets, err := api.depsolveBlueprintForImageType(*bp, options, imageType)
if err != nil {