From 19498d6cbb652a406dcc2d8a34ca9cc6b4657361 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Thu, 12 Mar 2009 12:08:04 +0000 Subject: [PATCH] kvm: use the correct vnc bind address 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index 50df891a9..246c7f9f7 100644 --- a/lib/hypervisor/hv_kvm.py +++ b/lib/hypervisor/hv_kvm.py @@ -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" % -- GitLab