chore(xo-server/exportDeltaVm): use _snapshotVm directly
This commit is contained in:
parent
489b142a66
commit
8bd949f618
@ -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(vmId)
|
vm = await this._snapshotVm(vm)
|
||||||
$defer.onFailure(() => this._deleteVm(vm))
|
$defer.onFailure(() => this._deleteVm(vm))
|
||||||
if (snapshotNameLabel) {
|
if (snapshotNameLabel) {
|
||||||
;this._setObjectProperties(vm, {
|
;this._setObjectProperties(vm, {
|
||||||
|
Loading…
Reference in New Issue
Block a user