fix(region): valid qcloud hssd for system disk

This commit is contained in:
Qu Xuan
2020-11-25 11:50:49 +08:00
parent 4a8eafbc0a
commit c5c77b4062
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ func (self *SQcloudGuestDriver) ValidateCreateData(ctx context.Context, userCred
if sysDisk.SizeMb > 1024*1024 {
return nil, fmt.Errorf("The %s system disk size must be less than 1024GB", sysDisk.Backend)
}
case api.STORAGE_LOCAL_PRO:
case api.STORAGE_LOCAL_PRO, api.STORAGE_CLOUD_HSSD: //https://cloud.tencent.com/document/product/362/2353
return nil, fmt.Errorf("storage %s can not be system disk", sysDisk.Backend)
}
+1 -1
View File
@@ -154,5 +154,5 @@ func (self *SStorage) GetMountPoint() string {
}
func (self *SStorage) IsSysDiskStore() bool {
return true
return strings.ToLower(self.storageType) != api.STORAGE_CLOUD_HSSD
}