xend: Fix getStubdomDomid function

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2010-05-15 08:31:42 +01:00
1 parent 3157bb4e13
commit e6cbaaddae
1 file changed
+1 -1
+1 -1
View 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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.