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