Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
6b405598
Commit
6b405598
authored
Mar 10, 2009
by
Guido Trotter
Browse files
Xen: Remove one hardcoded constant
s/"vnc_bind_address"/constants.HV_VNC_BIND_ADDRESS/ Reviewed-by: imsnah
parent
cc962d58
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/hypervisor/hv_xen.py
View file @
6b405598
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment