diff options
author | vh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk> | 2005-09-15 12:21:23 +0000 |
---|---|---|
committer | vh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk> | 2005-09-15 12:21:23 +0000 |
commit | 1e2fc48ada71772332a09839328d66d2a2312e5f (patch) | |
tree | 431faa8a970a1686fd9a6e9c7de28a7d24552f94 | |
parent | b4082b47ef28c523ffadcc0d6b8940142ab028cf (diff) | |
download | xen-1e2fc48ada71772332a09839328d66d2a2312e5f.tar.gz xen-1e2fc48ada71772332a09839328d66d2a2312e5f.tar.bz2 xen-1e2fc48ada71772332a09839328d66d2a2312e5f.zip |
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>
-rw-r--r-- | tools/python/xen/xm/create.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 482db15b89..8bc6c3e3d1 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -673,7 +673,7 @@ def choose_vnc_display(): # Local port is field 3. y = x.split()[3] # Field is addr:port, split off the port. - y = y.split(':')[1] + y = y.split(':')[-1] r.append(int(y)) return r |