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:
parent
51851bfd49
commit
4b90cb6fa4
1 changed files with 4 additions and 0 deletions
|
|
@ -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 == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue