minior fixes

This commit is contained in:
Qiu Jian
2018-09-15 18:12:20 +08:00
parent f43c278d90
commit fc5b3e68db
+1 -1
View File
@@ -2924,7 +2924,7 @@ func (self *SGuest) PerformChangeConfig(ctx context.Context, userCred mcclient.T
addDisk += diskConf.Size
storage := host.GetLeastUsedStorage(diskConf.Backend)
if storage == nil {
return nil, httperrors.NewResourceNotReadyError("host not connect storage %s", diskConf.Backend)
}
_, ok := diskSizes[storage.Id]
if !ok {