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

Fix for bug where a node would be double-added to list of nodes to run on.

parent 0fea3cc5
......@@ -826,8 +826,8 @@ class CraySystem(BaseSystem):
if len(ret_nids) < int(job['nodes']):
node_id_list.sort(key=lambda nid: int(nid))
for nid in node_id_list:
if nid not in ret_nids:
if int(nid) not in ret_nids:
if len(ret_nids) >= int(job['nodes']):
return ret_nids[:int(job['nodes'])]
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