xm: domid casting bug

- This patch fixes a small casting bug in xm.  The value of domid was
  not returned as an int, causing commands like 'xm vncviewer domid'
  to fail.

Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
This commit is contained in:
Keir Fraser committed 2008-09-11 11:58:08 +01:00
1 parent 3f88f7f2b9
commit a3e1f638ca
1 file changed
+1 -1
+1 -1
View File
@@ -1812,7 +1812,7 @@ def domain_name_to_domid(domain_name):
else:
dom = server.xend.domain(domain_name)
domid = int(sxp.child_value(dom, 'domid', '-1'))
return domid
return int(domid)
def xm_vncviewer(args):
autopass = False;
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.