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 {
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue