mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Return the restored VM at the end of XendDomainInfo.restore.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
8082f8f784
commit
c82aef9e98
1 file changed
+1
@@ -249,6 +249,7 @@ def restore(config):
|
||||
vm = XendDomainInfo(XendConfig(sxp = config), resume = True)
|
||||
try:
|
||||
vm.resume()
|
||||
return vm
|
||||
except:
|
||||
vm.destroy()
|
||||
raise
|
||||
|
||||