chore(xo-server/exportDeltaVm): use _snapshotVm directly

This commit is contained in:
Julien Fontanet 2018-03-03 10:19:51 +01:00
parent 489b142a66
commit 8bd949f618

View File

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