mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-09-10 22:14:48 -05:00
fix(xapi-explore-sr): fix crash on unreferenced VDI (#10113)
Co-authored-by: Florent BEAUCHAMP <florent.beauchamp@vates.tech>
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
- @xen-orchestra/rest-api minor
|
||||
- @xen-orchestra/web patch
|
||||
- vhd-lib patch
|
||||
- xapi-explore-sr patch
|
||||
- xen-api minor
|
||||
- xo-server minor
|
||||
|
||||
|
||||
@@ -124,6 +124,9 @@ execPromise(async args => {
|
||||
vdi.snapshots,
|
||||
ref => {
|
||||
const vdi = vdisByRef[ref]
|
||||
if (vdi === undefined) {
|
||||
return
|
||||
}
|
||||
if (full || !vdi.sm_config['vhd-parent']) {
|
||||
return makeVdiNode(vdi)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user