fix(xo-server/vm.warmMigration): fix start/delete params handling (#6570)

This commit is contained in:
Florent BEAUCHAMP
2022-12-06 10:42:51 +01:00
committed by GitHub
parent ad2454adab
commit d58f563de5
2 changed files with 6 additions and 2 deletions

View File

@@ -11,6 +11,8 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Warm migration] Fix start and delete vm after a warm migration [[#6568](https://github.com/vatesfr/xen-orchestra/issues/6568)]
### Packages to release
> When modifying a package, add it here with its release type.
@@ -26,4 +28,6 @@
> Keep this list alphabetically ordered to avoid merge conflicts
<!--packages-start-->
- xo-server: patch
<!--packages-end-->

View File

@@ -596,8 +596,8 @@ migrate.resolve = {
migrationNetwork: ['migrationNetwork', 'network', 'administrate'],
}
export async function warmMigration({ vm, sr, startVm, deleteSource }) {
await this.warmMigrateVm(vm, sr, startVm, deleteSource)
export async function warmMigration({ vm, sr, startDestinationVm, deleteSourceVm }) {
await this.warmMigrateVm(vm, sr, startDestinationVm, deleteSourceVm)
}
warmMigration.permission = 'admin'