Skip to contentSkip to conversation

domid casting bug

PATCH New George S. Coker, II 1 participant 1 message Sep 10, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

tools/python/xen/xm/main.py +1 -1
diff -r be573a356c90 tools/python/xen/xm/main.py
@@ -1812,7 +1812,7 @@
     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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel