cloudapi: sort image types in getDefaultTarget

Not a functional change.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2024-02-16 12:41:38 +01:00 committed by Tomáš Hozza
parent e561ba0854
commit eb3bd9dc43

View file

@ -255,34 +255,34 @@ func getDefaultTarget(imageType ImageTypes) (UploadTypes, error) {
switch imageType {
case ImageTypesAws:
fallthrough
case ImageTypesAwsRhui:
fallthrough
case ImageTypesAwsHaRhui:
fallthrough
case ImageTypesAwsRhui:
fallthrough
case ImageTypesAwsSapRhui:
return UploadTypesAws, nil
case ImageTypesEdgeCommit:
fallthrough
case ImageTypesEdgeInstaller:
fallthrough
case ImageTypesGuestImage:
fallthrough
case ImageTypesImageInstaller:
fallthrough
case ImageTypesIotCommit:
fallthrough
case ImageTypesIotInstaller:
fallthrough
case ImageTypesIotRawImage:
fallthrough
case ImageTypesLiveInstaller:
fallthrough
case ImageTypesVsphere:
fallthrough
case ImageTypesVsphereOva:
fallthrough
case ImageTypesWsl:
fallthrough
case ImageTypesImageInstaller:
fallthrough
case ImageTypesEdgeInstaller:
fallthrough
case ImageTypesIotInstaller:
fallthrough
case ImageTypesLiveInstaller:
fallthrough
case ImageTypesEdgeCommit:
fallthrough
case ImageTypesIotCommit:
fallthrough
case ImageTypesIotRawImage:
return UploadTypesAwsS3, nil
case ImageTypesEdgeContainer:
@ -299,10 +299,10 @@ func getDefaultTarget(imageType ImageTypes) (UploadTypes, error) {
case ImageTypesAzure:
fallthrough
case ImageTypesAzureRhui:
fallthrough
case ImageTypesAzureEap7Rhui:
fallthrough
case ImageTypesAzureRhui:
fallthrough
case ImageTypesAzureSapRhui:
return UploadTypesAzure, nil