Commit 6b405598 authored by Guido Trotter's avatar Guido Trotter
Browse files

Xen: Remove one hardcoded constant


Reviewed-by: imsnah
parent cc962d58
......@@ -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)
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment