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

[Xen-changelog] [xen-unstable] xend: Fix getStubdomDomid function



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273908702 -3600
# Node ID 4dc64aa43692c1da28987912c682c4b994ecc396
# Parent  3dfc577c8b9edd3d6e393ed8d62a61c8f835d159
xend: Fix getStubdomDomid function

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 3dfc577c8b9e -r 4dc64aa43692 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Sat May 15 08:29:59 2010 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Sat May 15 08:31:42 2010 +0100
@@ -1925,7 +1925,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®.