cloudapi: sort image types in getDefaultTarget
Not a functional change. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
e561ba0854
commit
eb3bd9dc43
1 changed files with 18 additions and 18 deletions
|
|
@ -255,34 +255,34 @@ func getDefaultTarget(imageType ImageTypes) (UploadTypes, error) {
|
||||||
switch imageType {
|
switch imageType {
|
||||||
case ImageTypesAws:
|
case ImageTypesAws:
|
||||||
fallthrough
|
fallthrough
|
||||||
case ImageTypesAwsRhui:
|
|
||||||
fallthrough
|
|
||||||
case ImageTypesAwsHaRhui:
|
case ImageTypesAwsHaRhui:
|
||||||
fallthrough
|
fallthrough
|
||||||
|
case ImageTypesAwsRhui:
|
||||||
|
fallthrough
|
||||||
case ImageTypesAwsSapRhui:
|
case ImageTypesAwsSapRhui:
|
||||||
return UploadTypesAws, nil
|
return UploadTypesAws, nil
|
||||||
|
|
||||||
|
case ImageTypesEdgeCommit:
|
||||||
|
fallthrough
|
||||||
|
case ImageTypesEdgeInstaller:
|
||||||
|
fallthrough
|
||||||
case ImageTypesGuestImage:
|
case ImageTypesGuestImage:
|
||||||
fallthrough
|
fallthrough
|
||||||
|
case ImageTypesImageInstaller:
|
||||||
|
fallthrough
|
||||||
|
case ImageTypesIotCommit:
|
||||||
|
fallthrough
|
||||||
|
case ImageTypesIotInstaller:
|
||||||
|
fallthrough
|
||||||
|
case ImageTypesIotRawImage:
|
||||||
|
fallthrough
|
||||||
|
case ImageTypesLiveInstaller:
|
||||||
|
fallthrough
|
||||||
case ImageTypesVsphere:
|
case ImageTypesVsphere:
|
||||||
fallthrough
|
fallthrough
|
||||||
case ImageTypesVsphereOva:
|
case ImageTypesVsphereOva:
|
||||||
fallthrough
|
fallthrough
|
||||||
case ImageTypesWsl:
|
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
|
return UploadTypesAwsS3, nil
|
||||||
|
|
||||||
case ImageTypesEdgeContainer:
|
case ImageTypesEdgeContainer:
|
||||||
|
|
@ -299,10 +299,10 @@ func getDefaultTarget(imageType ImageTypes) (UploadTypes, error) {
|
||||||
|
|
||||||
case ImageTypesAzure:
|
case ImageTypesAzure:
|
||||||
fallthrough
|
fallthrough
|
||||||
case ImageTypesAzureRhui:
|
|
||||||
fallthrough
|
|
||||||
case ImageTypesAzureEap7Rhui:
|
case ImageTypesAzureEap7Rhui:
|
||||||
fallthrough
|
fallthrough
|
||||||
|
case ImageTypesAzureRhui:
|
||||||
|
fallthrough
|
||||||
case ImageTypesAzureSapRhui:
|
case ImageTypesAzureSapRhui:
|
||||||
return UploadTypesAzure, nil
|
return UploadTypesAzure, nil
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue