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:
@@ -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
|
||||
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user