fix(DR): remove previous VDIs

Fixes vatesfr/xo-web#1510
This commit is contained in:
Julien Fontanet 2016-09-14 13:59:42 +02:00
parent cb4bc37424
commit a002958448

View File

@ -709,7 +709,7 @@ export default class {
const n = 1 - depth
await Promise.all(mapToArray(n ? olderCopies.slice(0, n) : olderCopies, vm =>
// Do not consider a failure to delete an old copy as a fatal error.
targetXapi.deleteVm(vm.$id)::pCatch(noop)
targetXapi.deleteVm(vm.$id, true)::pCatch(noop)
))
}
}