mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #15631 from ioito/hotfix/qx-vmware-migrate-check
fix(region): remove migrate check
This commit is contained in:
@@ -547,16 +547,10 @@ func (self *SESXiGuestDriver) IsSupportLiveMigrate() bool {
|
||||
}
|
||||
|
||||
func (self *SESXiGuestDriver) CheckMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestMigrateInput) error {
|
||||
if len(input.PreferHost) == 0 {
|
||||
return httperrors.NewBadRequestError("esxi guest migrate require prefer_host")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *SESXiGuestDriver) CheckLiveMigrate(ctx context.Context, guest *models.SGuest, userCred mcclient.TokenCredential, input api.GuestLiveMigrateInput) error {
|
||||
if len(input.PreferHost) == 0 {
|
||||
return httperrors.NewBadRequestError("esxi guest migrate require prefer_host")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user