feat(Xapi#migrateVm): allow non-running VMs

Fixes vatesfr/xo-web#1216
This commit is contained in:
Julien Fontanet 2016-07-05 17:09:32 +02:00
parent 1176c162d4
commit a2f7ad627e

View File

@ -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