mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
避免因创建instance指定普通云硬盘时设置io优化类型实例而导致创失败
This commit is contained in:
@@ -451,6 +451,7 @@ func (self *SRegion) CreateInstance(name string, imageId string, instanceType st
|
||||
} else {
|
||||
params["PasswordInherit"] = "True"
|
||||
}
|
||||
//{"Code":"InvalidSystemDiskCategory.ValueNotSupported","HostId":"ecs.aliyuncs.com","Message":"The specified parameter 'SystemDisk.Category' is not support IoOptimized Instance. Valid Values: cloud_efficiency;cloud_ssd. ","RequestId":"9C9A4E99-5196-42A2-80B6-4762F8F75C90"}
|
||||
params["IoOptimized"] = "optimized"
|
||||
for i, d := range disks {
|
||||
if i == 0 {
|
||||
|
||||
Reference in New Issue
Block a user