Revision d0c11cf7 lib/hypervisor/hv_xen.py

b/lib/hypervisor/hv_xen.py
398 398
    config.write("usb = 1\n")
399 399
    config.write("usbdevice = 'tablet'\n")
400 400
    config.write("vnc = 1\n")
401
    config.write("vnclisten = '%s'\n" % instance.vnc_bind_address)
401
    if instance.vnc_bind_address is None:
402
      config.write("vnclisten = '%s'\n" % constants.VNC_DEFAULT_BIND_ADDRESS)
403
    else:
404
      config.write("vnclisten = '%s'\n" % instance.vnc_bind_address)
402 405

  
403 406
    if instance.network_port > constants.HT_HVM_VNC_BASE_PORT:
404 407
      display = instance.network_port - constants.HT_HVM_VNC_BASE_PORT

Also available in: Unified diff