chore(xo-server/exportDeltaVm): pass cancel token to _snapshotVm

This commit is contained in:
Julien Fontanet 2018-03-03 10:21:10 +01:00
parent 1149102f37
commit 788bfe632f

View File

@ -806,7 +806,7 @@ export default class Xapi extends XapiBase {
this._assertHealthyVdiChains(vm) this._assertHealthyVdiChains(vm)
} }
if (!vm.is_a_snapshot) { if (!vm.is_a_snapshot) {
vm = await this._snapshotVm(vm, snapshotNameLabel) vm = await this._snapshotVm($cancelToken, vm, snapshotNameLabel)
$defer.onFailure(() => this._deleteVm(vm)) $defer.onFailure(() => this._deleteVm(vm))
} }