fix(scheduler): reduce calculation of storage's free_capacity

This commit is contained in:
Zexi Li
2022-12-30 12:40:54 +08:00
parent 8450d91367
commit b4c08e23f7
2 changed files with 20 additions and 4 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ func ParseDiskConfig(diskStr string, idx int) (*compute.DiskConfig, error) {
diskConfig.Mountpoint = p
} else if p == "autoextend" {
diskConfig.SizeMb = -1
} else if utils.IsInStringArray(p, compute.STORAGE_ALL_TYPES) {
} else if utils.IsInStringArray(p, compute.STORAGE_TYPES) {
diskConfig.Backend = p
} else if len(p) > 0 {
diskConfig.ImageId = p