projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f88f7f
)
xm: domid casting bug
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 11 Sep 2008 10:58:08 +0000
(11:58 +0100)
committer
Keir 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
patch
|
blob
|
history
diff --git
a/tools/python/xen/xm/main.py
b/tools/python/xen/xm/main.py
index 548fbc9b30a6d9f270a55cf3130b45eb32da73a1..596b943ef42bf7a08cf2edd7289dfb171c88722e 100644
(file)
--- a/
tools/python/xen/xm/main.py
+++ b/
tools/python/xen/xm/main.py
@@
-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;