vm.delete() must not remove unpluggable VDIs.
This commit is contained in:
parent
123677b6c6
commit
e7b3e28f76
@ -567,6 +567,11 @@ export default class Xapi extends XapiBase {
|
||||
|
||||
if (deleteDisks) {
|
||||
await Promise.all(map(vm.$VBDs, vbd => {
|
||||
// Do not delete unpluggable VDIs.
|
||||
if (vbd.unpluggable) {
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
return this._deleteVdi(vbd.$VDI).catch(noop)
|
||||
} catch (_) {}
|
||||
|
Loading…
Reference in New Issue
Block a user