direct-io.hg

changeset 12200:aac5c1fcde6e

Return the restored VM at the end of XendDomainInfo.restore.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Nov 01 18:39:33 2006 +0000 (2006-11-01)
parents cf3d69ba5633
children 46fad06ab0b3
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Nov 01 18:37:23 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Nov 01 18:39:33 2006 +0000
     1.3 @@ -249,6 +249,7 @@ def restore(config):
     1.4      vm = XendDomainInfo(XendConfig(sxp = config), resume = True)
     1.5      try:
     1.6          vm.resume()
     1.7 +        return vm
     1.8      except:
     1.9          vm.destroy()
    1.10          raise