Skip to content

Commit ddfac50

Browse files
authored
Merge pull request #1171 from ioito/hotfix/qx-aliyun-storage-medium
fix(aliyun): storage medium type
2 parents fbf9c82 + a56c145 commit ddfac50

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pkg/multicloud/aliyun/storage.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ package aliyun
2929

3030
import (
3131
"fmt"
32-
"strings"
3332

3433
"yunion.io/x/jsonutils"
3534
"yunion.io/x/pkg/errors"
@@ -103,16 +102,11 @@ func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error) {
103102
}
104103

105104
func (self *SStorage) GetStorageType() string {
106-
//return models.STORAGE_PUBLIC_CLOUD
107105
return self.storageType
108106
}
109107

110108
func (self *SStorage) GetMediumType() string {
111-
if strings.Contains(self.storageType, "_ssd") {
112-
return api.DISK_TYPE_SSD
113-
} else {
114-
return api.DISK_TYPE_ROTATE
115-
}
109+
return api.DISK_TYPE_SSD
116110
}
117111

118112
func (self *SStorage) GetCapacityMB() int64 {

0 commit comments

Comments
 (0)