aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-15 08:39:03 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-15 08:39:03 +0100
commit88ab606b02624fb926b029e00cc2f64c3cef8f6b (patch)
treee2734f54c1ca84163a1e23433e365fcf04cbd72c
parent3983c79424ad8e76e9c4d0d3e586f9b749d17daa (diff)
downloadxen-88ab606b02624fb926b029e00cc2f64c3cef8f6b.tar.gz
xen-88ab606b02624fb926b029e00cc2f64c3cef8f6b.tar.bz2
xen-88ab606b02624fb926b029e00cc2f64c3cef8f6b.zip
xend: Fix getStubdomDomid function
Signed-off-by: Keir Fraser <keir.fraser@citrix.com> xen-unstable changeset: 21394:4dc64aa43692 xen-unstable date: Sat May 15 08:31:42 2010 +0100
-rw-r--r--tools/python/xen/xend/XendDomainInfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index 585a73bff3..4f2e7044e7 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -1923,7 +1923,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