mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-25 10:16:12 +08:00
This commit is contained in:
@@ -2639,10 +2639,6 @@ func (self *SGuest) PerformChangeConfig(ctx context.Context, userCred mcclient.T
|
||||
return nil, httperrors.NewInvalidStatusError("Cannot change config in %s for %s, requires %s", self.Status, self.GetHypervisor(), changeStatus)
|
||||
}
|
||||
|
||||
if self.Status == api.VM_READY && self.ShutdownMode == api.VM_SHUTDOWN_MODE_STOP_CHARGING {
|
||||
return nil, httperrors.NewInvalidStatusError("Cannot change config with %s", self.ShutdownMode)
|
||||
}
|
||||
|
||||
_, err = self.GetHost()
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "GetHost")
|
||||
|
||||
Reference in New Issue
Block a user