ia64/xen-unstable

changeset 2705:18ec571f3b9e

bitkeeper revision 1.1159.127.2 (41780e5c-RsPtK5gKwQvWEW2Vv26oQ)

Use a default name if we don't know the name of a domain anymore.
author cl349@freefall.cl.cam.ac.uk
date Thu Oct 21 19:30:36 2004 +0000 (2004-10-21)
parents 744573a15e95
children 3897c6ce9024
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Oct 21 17:11:30 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Oct 21 19:30:36 2004 +0000
     1.3 @@ -236,7 +236,7 @@ def vm_recreate(savedinfo, info):
     1.4      if config:
     1.5          d = vm.construct(config)
     1.6      else:
     1.7 -        vm.name = sxp.child_value(savedinfo, 'name')
     1.8 +        vm.name = sxp.child_value(savedinfo, 'name', "Domain-%d" % info['dom'])
     1.9          d = defer.succeed(vm)
    1.10      vm.recreate = 0
    1.11      return d