Fix-up reference to name_label.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-11-30 18:05:19 +00:00
1 parent ac5ea23a6d
commit 9523b51469
1 file changed
+1 -3
+1 -3
View File
@@ -184,15 +184,13 @@ class XendDomain:
if not dom_uuid:
continue
dom_name = dom.get('name', 'Domain-%s' % dom_uuid)
dom_name = dom.get('name_label', 'Domain-%s' % dom_uuid)
try:
running_dom = self.domain_lookup_nr(dom_name)
if not running_dom:
# instantiate domain if not started.
new_dom = XendDomainInfo.createDormant(dom)
self._managed_domain_register(new_dom)
else:
self._managed_domain_register(running_dom)
except Exception:
log.exception("Failed to create reference to managed "
"domain: %s" % dom_name)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.