From a56c145ee0a7db0486a068f388478b546037225b Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Thu, 6 Feb 2025 09:44:51 +0800 Subject: [PATCH] fix(aliyun): storage medium type --- pkg/multicloud/aliyun/storage.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/multicloud/aliyun/storage.go b/pkg/multicloud/aliyun/storage.go index 42b7ad3f4..4254f727a 100644 --- a/pkg/multicloud/aliyun/storage.go +++ b/pkg/multicloud/aliyun/storage.go @@ -29,7 +29,6 @@ package aliyun import ( "fmt" - "strings" "yunion.io/x/jsonutils" "yunion.io/x/pkg/errors" @@ -103,16 +102,11 @@ func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error) { } func (self *SStorage) GetStorageType() string { - //return models.STORAGE_PUBLIC_CLOUD return self.storageType } func (self *SStorage) GetMediumType() string { - if strings.Contains(self.storageType, "_ssd") { - return api.DISK_TYPE_SSD - } else { - return api.DISK_TYPE_ROTATE - } + return api.DISK_TYPE_SSD } func (self *SStorage) GetCapacityMB() int64 {