mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix "no such domain" error message from domain_lookup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
0549b00834
commit
e8943dc06d
1 file changed
+1
-1
@@ -495,7 +495,7 @@ class XendDomain:
|
||||
self._refresh(refresh_shutdown = False)
|
||||
dom = self.domain_lookup_nr(domid)
|
||||
if not dom:
|
||||
raise XendInvalidDomain("No domain named '%s'." % str(domid))
|
||||
raise XendInvalidDomain(str(domid))
|
||||
return dom
|
||||
finally:
|
||||
self.domains_lock.release()
|
||||
|
||||