|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xm: domid casting bug
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1221130688 -3600
# Node ID fba8dca321c2b99842af6624f24afb77c472184b
# Parent e5766aea29073402cbc9373d4d76bd60986e956d
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@xxxxxxxxxxxxxx>
---
tools/python/xen/xm/main.py | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r e5766aea2907 -r fba8dca321c2 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Thu Sep 11 11:56:49 2008 +0100
+++ b/tools/python/xen/xm/main.py Thu Sep 11 11:58:08 2008 +0100
@@ -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;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] xm: domid casting bug,
Xen patchbot-unstable <=
|
|
|
|
|