Commit e98d1429 authored by Paul Rich's avatar Paul Rich
Browse files

prevent possible double removal from unavailable nodes.

parent 909f37aa
......@@ -724,7 +724,7 @@ class CraySystem(BaseSystem):
for node_id in node_id_list: #strip non-idle nodes.
if not self.nodes[str(node_id)].status in ['idle']:
unavailable_nodes.append(node_id)
for node_id in unavailable_nodes:
for node_id in set(unavailable_nodes):
node_id_list.remove(node_id)
idle_nodecount = len(node_id_list)
return (idle_nodecount, node_id_list)
......
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