kvm: use the correct vnc bind address
authorGuido Trotter <ultrotter@google.com>
Thu, 12 Mar 2009 12:08:04 +0000 (12:08 +0000)
committerGuido Trotter <ultrotter@google.com>
Thu, 12 Mar 2009 12:08:04 +0000 (12:08 +0000)
There is a bug in kvm, when binding vnc to a specific address the
constant 'vnc_bind_address' is passed in, instead of the actual
requested address. This patch fixes it.

Reviewed-by: iustinp

lib/hypervisor/hv_kvm.py

index 50df891..246c7f9 100644 (file)
@@ -301,7 +301,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
           if vnc_bind_address == '0.0.0.0':
             vnc_arg = ':%d' % (display)
           else:
-            vnc_arg = '%s:%d' % (constants.HV_VNC_BIND_ADDRESS, display)
+            vnc_arg = '%s:%d' % (vnc_bind_address, display)
         else:
           logging.error("Network port is not a valid VNC display (%d < %d)."
                         " Not starting VNC" %