Fix broken test for zombies.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2005-10-13 15:25:42 +01:00
1 parent b5d8fa2d87
commit 043da08cae
1 file changed
+4 -3
+4 -3
View File
@@ -313,12 +313,13 @@ class XendDomain:
def domain_lookup_by_name_nr(self, name):
self.domains_lock.acquire()
try:
matching = filter(lambda d: d.getName() == name,
self.domains.values())
matching = filter(
lambda d: d.getName() == name and not d.isShutdown(),
self.domains.values())
n = len(matching)
if n == 1:
return matching[0]
elif n > 1 and not d.isTerminated():
elif n > 1:
log.error('Name uniqueness has been violated for name %s! '
'Recovering by renaming:', name)
for d in matching:
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.