diff --git a/pkg/compute/models/guests.go b/pkg/compute/models/guests.go index 5188a338c0..8bad2b8134 100644 --- a/pkg/compute/models/guests.go +++ b/pkg/compute/models/guests.go @@ -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 {