feat(xo-server/_assertHealthyVdiChains): attach info to error
This commit is contained in:
parent
b7cc31c94d
commit
d6aa40679b
@ -869,7 +869,13 @@ export default class Xapi extends XapiBase {
|
|||||||
_assertHealthyVdiChains(vm) {
|
_assertHealthyVdiChains(vm) {
|
||||||
const cache = { __proto__: null }
|
const cache = { __proto__: null }
|
||||||
forEach(vm.$VBDs, ({ $VDI }) => {
|
forEach(vm.$VBDs, ({ $VDI }) => {
|
||||||
|
try {
|
||||||
this._assertHealthyVdiChain($VDI, cache)
|
this._assertHealthyVdiChain($VDI, cache)
|
||||||
|
} catch (error) {
|
||||||
|
error.VDI = $VDI
|
||||||
|
error.VM = vm
|
||||||
|
throw error
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user