chore(xo-server): remove unnecessary getObject in exportDeltaVm

This commit is contained in:
Julien Fontanet 2018-03-03 10:15:24 +01:00
parent cbbbb6da4f
commit 489b142a66

View File

@ -803,7 +803,7 @@ export default class Xapi extends XapiBase {
) { ) {
let vm = this.getObject(vmId) let vm = this.getObject(vmId)
if (!bypassVdiChainsCheck) { if (!bypassVdiChainsCheck) {
this._assertHealthyVdiChains(this.getObject(vm)) this._assertHealthyVdiChains(vm)
} }
if (!vm.is_a_snapshot) { if (!vm.is_a_snapshot) {
vm = await this.snapshotVm(vmId) vm = await this.snapshotVm(vmId)