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
5c562aa4
Commit
5c562aa4
authored
Feb 20, 2009
by
Guido Trotter
Browse files
dumb-allocator: avoid allocating on drained nodes
This was forgotten when drained nodes were added. Reviewed-by: iustinp
parent
f29266b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/examples/dumb-allocator
View file @
5c562aa4
...
...
@@ -77,7 +77,7 @@ def main():
offline_nodes
=
[
name
for
name
in
nodes
if
nodes
[
name
][
"offline"
]]
drained_nodes
=
[
name
for
name
in
nodes
if
nodes
[
name
][
"offline"
]]
if
req_type
==
"allocate"
:
forbidden_nodes
=
offline_nodes
forbidden_nodes
=
offline_nodes
+
drained_nodes
inst_data
=
request
elif
req_type
==
"relocate"
:
idict
=
data
[
"instances"
][
request
[
"name"
]]
...
...
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