ia64/xen-unstable
changeset 7378:7b9547485703
Fix broken test for zombies.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | emellor@leeni.uk.xensource.com |
---|---|
date | Thu Oct 13 15:25:42 2005 +0100 (2005-10-13) |
parents | 43677823b395 |
children | 92c6021f23e4 |
files | tools/python/xen/xend/XendDomain.py |
line diff
1.1 --- a/tools/python/xen/xend/XendDomain.py Thu Oct 13 11:12:11 2005 +0100 1.2 +++ b/tools/python/xen/xend/XendDomain.py Thu Oct 13 15:25:42 2005 +0100 1.3 @@ -313,12 +313,13 @@ class XendDomain: 1.4 def domain_lookup_by_name_nr(self, name): 1.5 self.domains_lock.acquire() 1.6 try: 1.7 - matching = filter(lambda d: d.getName() == name, 1.8 - self.domains.values()) 1.9 + matching = filter( 1.10 + lambda d: d.getName() == name and not d.isShutdown(), 1.11 + self.domains.values()) 1.12 n = len(matching) 1.13 if n == 1: 1.14 return matching[0] 1.15 - elif n > 1 and not d.isTerminated(): 1.16 + elif n > 1: 1.17 log.error('Name uniqueness has been violated for name %s! ' 1.18 'Recovering by renaming:', name) 1.19 for d in matching: