WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix broken test for zombies., Xen patchbot -unstable <=