xm: domid casting bug
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Sep 2008 10:58:08 +0000 (11:58 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Sep 2008 10:58:08 +0000 (11:58 +0100)
- 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>
tools/python/xen/xm/main.py

index 548fbc9b30a6d9f270a55cf3130b45eb32da73a1..596b943ef42bf7a08cf2edd7289dfb171c88722e 100644 (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;