mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
3f88f7f2b9
commit
a3e1f638ca
1 file changed
+1
-1
@@ -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;
|
||||
|
||||