Merge pull request #4904 from ioito/bugfix/qx-azure-vm-create-sys-storage

fix: 避免创建azure时指定高级ssd失效
This commit is contained in:
yunion-ci-robot
2020-01-16 09:48:06 +08:00
committed by GitHub
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