ia64/xen-unstable

changeset 7289:bb113ea17659

Remove unnecessary extraction of ssidref from config inside restore -- this
is now handled by the construct call, which restore has recently started using.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Sun Oct 09 12:16:23 2005 +0100 (2005-10-09)
parents 32f9300618d6
children fe4c1d44e899
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Sun Oct 09 12:14:46 2005 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Sun Oct 09 12:16:23 2005 +0100
     1.3 @@ -219,17 +219,12 @@ def recreate(xeninfo):
     1.4  def restore(config):
     1.5      """Create a domain and a VM object to do a restore.
     1.6  
     1.7 -    @param config:    domain configuration
     1.8 +    @param config: domain configuration
     1.9      """
    1.10  
    1.11      log.debug("XendDomainInfo.restore(%s)", config)
    1.12  
    1.13 -    try:
    1.14 -        uuid    =     sxp.child_value(config, 'uuid')
    1.15 -        ssidref = int(sxp.child_value(config, 'ssidref'))
    1.16 -    except TypeError, exn:
    1.17 -        raise VmError('Invalid ssidref in config: %s' % exn)
    1.18 -
    1.19 +    uuid = sxp.child_value(config, 'uuid')
    1.20      vm = XendDomainInfo(uuid, parseConfig(config))
    1.21      try:
    1.22          vm.construct()