fix(xo-web/copyVm): correctly pass the VM type to copyVms (#5173)

Fixes xoa-support#2773

The modal uses the type to find the objects (either VMs or snapshots) and use
them to generate the names. The missing type caused the VM clones to be named
`undefined_clone`.
This commit is contained in:
Pierre Donias
2020-07-28 16:29:37 +02:00
committed by GitHub
parent 3d13d9b0dc
commit 1ffef91b7a
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
- [Backup/Restore] Fixes `an error has occurred` when all backups for a specific VM have been deleted (PR [#5156](https://github.com/vatesfr/xen-orchestra/pull/5156))
- [OVA Import] fix import of Red Hat generated .ova files (PR [#5159](https://github.com/vatesfr/xen-orchestra/pull/5159))
- [Proxy/deploy] Ability to set HTTP proxy configuration (PR [#5145](https://github.com/vatesfr/xen-orchestra/pull/5145))
- [Fast clone] Fix bug where the name of the created VM would be "undefined_clone" (PR [#5173](https://github.com/vatesfr/xen-orchestra/pull/5173))
### Packages to release

View File

@@ -1187,7 +1187,7 @@ export const copyVms = (vms, type) => {
}, noop)
}
export const copyVm = vm => copyVms([vm])
export const copyVm = vm => copyVms([vm], vm.type)
export const convertVmToTemplate = vm =>
confirm({