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