fix(xo-server/importDeltaVm): dont fail on empty VBDs (#3410)
This commit is contained in:
commit
63fe0f2c88
@ -12,6 +12,7 @@
|
||||
|
||||
- [Remotes] Rename connect(ed)/disconnect(ed) to enable(d)/disable(d) [#3323](https://github.com/vatesfr/xen-orchestra/issues/3323) (PR [#3396](https://github.com/vatesfr/xen-orchestra/pull/3396))
|
||||
- [Remotes] Fix error appears twice on testing (PR [#3399](https://github.com/vatesfr/xen-orchestra/pull/3399))
|
||||
- [Backup NG] Don't fail on VMs with empty VBDs (like CDs or floppy disks) (PR [#3410](https://github.com/vatesfr/xen-orchestra/pull/3410))
|
||||
|
||||
### Released packages
|
||||
|
||||
|
@ -981,7 +981,10 @@ export default class Xapi extends XapiBase {
|
||||
const baseVdis = {}
|
||||
baseVm &&
|
||||
forEach(baseVm.$VBDs, vbd => {
|
||||
baseVdis[vbd.VDI] = vbd.$VDI
|
||||
const vdi = vbd.$VDI
|
||||
if (vdi !== undefined) {
|
||||
baseVdis[vbd.VDI] = vbd.$VDI
|
||||
}
|
||||
})
|
||||
|
||||
// 1. Create the VMs.
|
||||
|
Loading…
Reference in New Issue
Block a user