From a2f7ad627e9473c3a7f774ef57e61f66f146fd80 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Tue, 5 Jul 2016 17:09:32 +0200 Subject: [PATCH] feat(Xapi#migrateVm): allow non-running VMs Fixes vatesfr/xo-web#1216 --- src/xapi/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/xapi/index.js b/src/xapi/index.js index e2adb726c..db88bde86 100644 --- a/src/xapi/index.js +++ b/src/xapi/index.js @@ -1439,10 +1439,6 @@ export default class Xapi extends XapiBase { mapVdisSrs } = {}) { const vm = this.getObject(vmId) - if (!isVmRunning(vm)) { - throw new Error('cannot migrate a non-running VM') - } - const host = hostXapi.getObject(hostId) const accrossPools = vm.$pool !== host.$pool