ia64/xen-unstable

changeset 12709:dde9e37c0671

Fix-up reference to name_label.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Nov 30 18:05:19 2006 +0000 (2006-11-30)
parents 2e9eb9980c41
children cefb1f761f0b
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Thu Nov 30 17:28:51 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Thu Nov 30 18:05:19 2006 +0000
     1.3 @@ -184,15 +184,13 @@ class XendDomain:
     1.4                  if not dom_uuid:
     1.5                      continue
     1.6                  
     1.7 -                dom_name = dom.get('name', 'Domain-%s' % dom_uuid)
     1.8 +                dom_name = dom.get('name_label', 'Domain-%s' % dom_uuid)
     1.9                  try:
    1.10                      running_dom = self.domain_lookup_nr(dom_name)
    1.11                      if not running_dom:
    1.12                          # instantiate domain if not started.
    1.13                          new_dom = XendDomainInfo.createDormant(dom)
    1.14                          self._managed_domain_register(new_dom)
    1.15 -                    else:
    1.16 -                        self._managed_domain_register(running_dom)
    1.17                  except Exception:
    1.18                      log.exception("Failed to create reference to managed "
    1.19                                    "domain: %s" % dom_name)