cloudapi/v2: Add rhsm facts for non-koji cloudapi composes
This commit is contained in:
parent
5538a92eb3
commit
d7b8bb122c
1 changed files with 6 additions and 0 deletions
|
|
@ -270,6 +270,12 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
|
|||
|
||||
imageOptions := distro.ImageOptions{Size: imageType.Size(0)}
|
||||
|
||||
if request.Koji == nil {
|
||||
imageOptions.Facts = &distro.FactsImageOptions{
|
||||
ApiType: "cloudapi-v2",
|
||||
}
|
||||
}
|
||||
|
||||
if request.Customizations != nil && request.Customizations.Subscription != nil {
|
||||
imageOptions.Subscription = &distro.SubscriptionImageOptions{
|
||||
Organization: request.Customizations.Subscription.Organization,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue