ia64/xen-unstable

changeset 18476:fba8dca321c2

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>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Sep 11 11:58:08 2008 +0100 (2008-09-11)
parents e5766aea2907
children 4ffc70556000
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Thu Sep 11 11:56:49 2008 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Sep 11 11:58:08 2008 +0100
     1.3 @@ -1812,7 +1812,7 @@ def domain_name_to_domid(domain_name):
     1.4      else:
     1.5          dom = server.xend.domain(domain_name)
     1.6          domid = int(sxp.child_value(dom, 'domid', '-1'))
     1.7 -    return domid
     1.8 +    return int(domid)
     1.9  
    1.10  def xm_vncviewer(args):
    1.11      autopass = False;