feat(vm.start): resume VM if suspended (#639)
This commit is contained in:
parent
0bcabb9f0d
commit
041c32a4a7
@ -1456,7 +1456,9 @@ export default class Xapi extends XapiBase {
|
|||||||
if (e.code === 'OPERATION_BLOCKED') {
|
if (e.code === 'OPERATION_BLOCKED') {
|
||||||
throw forbiddenOperation('Start', e.params[1])
|
throw forbiddenOperation('Start', e.params[1])
|
||||||
}
|
}
|
||||||
|
if (e.code === 'VM_BAD_POWER_STATE') {
|
||||||
|
return this.resumeVm(vmId)
|
||||||
|
}
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user