fix: 避免创建azure时指定高级ssd失效

This commit is contained in:
Qu Xuan
2020-01-15 17:56:57 +08:00
parent 5e4155061f
commit 129ed08a5c
3 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ func (self *SHost) _createVM(desc *cloudprovider.SManagedVMCreateConfig, nicId s
Name: fmt.Sprintf("vdisk_%s_%d", desc.Name, time.Now().UnixNano()),
Caching: "ReadWrite",
ManagedDisk: &ManagedDiskParameters{
StorageAccountType: storage.Name,
StorageAccountType: storage.storageType,
},
CreateOption: "FromImage",
DiskSizeGB: &sysDiskSize,
-1
View File
@@ -355,7 +355,6 @@ func (self *SInstance) getStorageInfoByUri(uri string) (*SStorage, *SClassicStor
if storageaccounts[i].Name == storageName {
storage := SStorage{
zone: self.host.zone,
Name: storageName,
storageType: storageaccounts[i].Sku.Name,
}
return &storage, nil, nil
-1
View File
@@ -36,7 +36,6 @@ type SStorage struct {
zone *SZone
storageType string
Name string
ResourceType string
Tier string
Kind string