ia64/xen-unstable

changeset 6895:cb518207fc95

add support for ipv6 address in choose_vnc_display function
getting the port from the latest field, not the first one.
fix suggested by Nickolai Zeldovich. close bug #231

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vh249@arcadians.cl.cam.ac.uk
date Thu Sep 15 12:21:23 2005 +0000 (2005-09-15)
parents da550f59e971
children c27431cf81f9
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Thu Sep 15 12:19:00 2005 +0000
     1.2 +++ b/tools/python/xen/xm/create.py	Thu Sep 15 12:21:23 2005 +0000
     1.3 @@ -673,7 +673,7 @@ def choose_vnc_display():
     1.4              # Local port is field 3.
     1.5              y = x.split()[3]
     1.6              # Field is addr:port, split off the port.
     1.7 -            y = y.split(':')[1]
     1.8 +            y = y.split(':')[-1]
     1.9              r.append(int(y))
    1.10          return r
    1.11