fix(xapi-explore-sr): fix crash on unreferenced VDI (#10113)

Co-authored-by: Florent BEAUCHAMP <florent.beauchamp@vates.tech>
This commit is contained in:
Bastien Nollet
2026-07-15 11:20:33 +02:00
committed by GitHub
parent b078d3d42d
commit 5de65620f1
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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)
}