Skip to content
Snippets Groups Projects
Commit 5c562aa4 authored by Guido Trotter's avatar Guido Trotter
Browse files

dumb-allocator: avoid allocating on drained nodes

This was forgotten when drained nodes were added.

Reviewed-by: iustinp
parent f29266b4
No related branches found
No related tags found
No related merge requests found
......@@ -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"]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment