fix(xapi/VDI_destroy): respect vdiDestroyRetryWhenInUse option
This commit is contained in:
parent
da67298b43
commit
864946477b
@ -15,7 +15,7 @@ module.exports = class Vdi {
|
||||
await pCatch.call(
|
||||
// work around a race condition in XCP-ng/XenServer where the disk is not fully unmounted yet
|
||||
pRetry(() => this.callAsync('VDI.destroy', vdiRef), {
|
||||
...this._vdiDestroyRetry,
|
||||
...this._vdiDestroyRetryWhenInUse,
|
||||
when: { code: 'VDI_IN_USE' },
|
||||
}),
|
||||
// if this VDI is not found, consider it destroyed
|
||||
|
Loading…
Reference in New Issue
Block a user