From 6b40559823c0bae5184235177974fc75af2d2440 Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Tue, 10 Mar 2009 15:02:43 +0000 Subject: [PATCH] Xen: Remove one hardcoded constant s/"vnc_bind_address"/constants.HV_VNC_BIND_ADDRESS/ Reviewed-by: imsnah --- lib/hypervisor/hv_xen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hypervisor/hv_xen.py b/lib/hypervisor/hv_xen.py index efc9364..eaa7ec6 100644 --- a/lib/hypervisor/hv_xen.py +++ b/lib/hypervisor/hv_xen.py @@ -597,7 +597,7 @@ class XenHvmHypervisor(XenHypervisor): if hvp[constants.HV_VNC_BIND_ADDRESS] is None: config.write("vnclisten = '%s'\n" % constants.VNC_DEFAULT_BIND_ADDRESS) else: - config.write("vnclisten = '%s'\n" % hvp["vnc_bind_address"]) + config.write("vnclisten = '%s'\n" % hvp[constants.HV_VNC_BIND_ADDRESS]) if instance.network_port > constants.VNC_BASE_PORT: display = instance.network_port - constants.VNC_BASE_PORT -- 1.7.10.4