[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix broken test for zombies.



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 7b95474857033e638236ec66d9d098eb7928aee5
# Parent  43677823b395b7c043cb733a827d62e9c59357d7
Fix broken test for zombies.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 43677823b395 -r 7b9547485703 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Thu Oct 13 10:12:11 2005
+++ b/tools/python/xen/xend/XendDomain.py       Thu Oct 13 14:25:42 2005
@@ -313,12 +313,13 @@
     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:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.