projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc962d5
)
Xen: Remove one hardcoded constant
author
Guido Trotter
<ultrotter@google.com>
Tue, 10 Mar 2009 15:02:43 +0000
(15:02 +0000)
committer
Guido Trotter
<ultrotter@google.com>
Tue, 10 Mar 2009 15:02:43 +0000
(15:02 +0000)
s/"vnc_bind_address"/constants.HV_VNC_BIND_ADDRESS/
Reviewed-by: imsnah
lib/hypervisor/hv_xen.py
patch
|
blob
|
history
diff --git
a/lib/hypervisor/hv_xen.py
b/lib/hypervisor/hv_xen.py
index
efc9364
..
eaa7ec6
100644
(file)
--- 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