From 52073e79fabe5fddc7a2349b5569bd9554e5c0ca Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Thu, 3 Mar 2016 09:43:12 +0100 Subject: [PATCH] Xapi#startVmOnCd(): fix for HVM (fix vatesfr/xo-web#794). --- src/xapi.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xapi.js b/src/xapi.js index 280adaefc..d311dd2c3 100644 --- a/src/xapi.js +++ b/src/xapi.js @@ -1721,17 +1721,17 @@ export default class Xapi extends XapiBase { const vm = this.getObject(vmId) if (isVmHvm(vm)) { - const bootOrder = vm.HVM_boot_params + const { order } = vm.HVM_boot_params - await this._setObjectProperties(vm, { - HVM_boot_params: 'd' + await this._updateObjectMapProperty(vm, 'HVM_boot_params', { + order: 'd' }) try { await this._startVm(vm) } finally { - await this._setObjectProperties(vm, { - HVM_boot_params: bootOrder + await this._updateObjectMapProperty(vm, 'HVM_boot_params', { + order }) } } else {