diff -r 5f95b278cdbd tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Wed Oct 03 18:15:30 2007 -0400 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Oct 05 09:33:22 2007 -0400 @@ -229,12 +235,16 @@ def createDormant(domconfig): @return: A up and running XendDomainInfo instance @raise XendError: Errors with configuration. """ - + from xen.xend import XendDomain + othervm = XendDomain.instance().domain_lookup_nr(domconfig["uuid"]) log.debug("XendDomainInfo.createDormant(%s)", scrub_password(domconfig)) # domid does not make sense for non-running domains. domconfig.pop('domid', None) vm = XendDomainInfo(domconfig) + # If there was an existing VM with UUID make sure it is renamed + if othervm is not None and othervm.domid is not None: + othervm.info["name_label"] = vm.info["name_label"] return vm def domain_by_name(name):