cloudapi: enable azure-eap7-rhui image type

This commit is contained in:
Achilleas Koutsou 2023-03-23 18:31:33 +00:00 committed by Tomáš Hozza
parent 90cc2b18a8
commit 2a87a8b7f3
3 changed files with 130 additions and 123 deletions

View file

@ -585,6 +585,8 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
fallthrough
case ImageTypesAzureRhui:
fallthrough
case ImageTypesAzureEap7Rhui:
fallthrough
case ImageTypesAzureSapRhui:
var azureUploadOptions AzureUploadOptions
jsonUploadOptions, err := json.Marshal(*ir.UploadOptions)
@ -675,6 +677,8 @@ func imageTypeFromApiImageType(it ImageTypes, arch distro.Arch) string {
return "vhd"
case ImageTypesAzureRhui:
return "azure-rhui"
case ImageTypesAzureEap7Rhui:
return "azure-eap7-rhui"
case ImageTypesAzureSapRhui:
return "azure-sap-rhui"
case ImageTypesGuestImage: