xend: Fix getStubdomDomid function
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 15 May 2010 07:31:42 +0000 (08:31 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 15 May 2010 07:31:42 +0000 (08:31 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/python/xen/xend/XendDomainInfo.py

index dcf26a9886eef15460cea5fcbfd6cd2f2ea0b315..e0c539d41657df4add2eb93052aa08912913cd03 100644 (file)
@@ -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