Skip to content

Commit

Permalink
fix(aliyun): storage medium type
Browse files Browse the repository at this point in the history
  • Loading branch information
ioito committed Feb 6, 2025
1 parent fbf9c82 commit a56c145
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 a56c145

Please sign in to comment.