Skip to content

Commit

Permalink
Merge pull request #1171 from ioito/hotfix/qx-aliyun-storage-medium
Browse files Browse the repository at this point in the history
fix(aliyun): storage medium type
  • Loading branch information
ioito authored Feb 6, 2025
2 parents fbf9c82 + a56c145 commit ddfac50
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/multicloud/aliyun/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ package aliyun

import (
"fmt"
"strings"

"yunion.io/x/jsonutils"
"yunion.io/x/pkg/errors"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ddfac50

Please sign in to comment.