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

[Xen-changelog] [xen-3.4-testing] xend: Fix getStubdomDomid function



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273909493 -3600
# Node ID d542f7954a63f0aa75b854fdb95304ac25b114d6
# Parent  4c5acce5961c1fcd7eccb8ddbe4abbf3b12ab5c3
xend: Fix getStubdomDomid function

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   21394:4dc64aa43692
xen-unstable date:        Sat May 15 08:31:42 2010 +0100
---
 tools/python/xen/xend/XendDomainInfo.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 4c5acce5961c -r d542f7954a63 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Sat May 15 08:44:37 2010 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Sat May 15 08:44:53 2010 +0100
@@ -1748,7 +1748,7 @@ class XendDomainInfo:
         dom_list = xstransact.List('/local/domain')
         for d in dom_list:
             target = xstransact.Read('/local/domain/' + d + '/target')
-            if target is not None and int(target) is self.domid :
+            if target is not None and int(target) == self.domid:
                 return int(d)
         return None
 

_______________________________________________
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®.