cloudapi/v2: set ostree rhsm option on image options

The ostree options are used during the ostree resolve job, but when
generating the manifest the rhsm value comes from the image options, so
it's necessary to set it on both.
This commit is contained in:
Sanne Raymaekers 2022-12-07 12:18:26 +01:00 committed by Achilleas Koutsou
parent 51851bfd49
commit 4b90cb6fa4

View file

@ -313,6 +313,10 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
}
if ir.Ostree.Rhsm != nil {
ostreeOptions.RHSM = *ir.Ostree.Rhsm
// RHSM needs to be set on imageoptions directly in addition
// to the resolve job input
imageOptions.OSTree.RHSM = *ir.Ostree.Rhsm
}
}
if ostreeOptions.Ref == "" {