Commit 80a01808 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix bug in iallocator data structures build

Commit a1cef11c

 fixed non-vm_capable nodes export, but broke
inadvertently offline nodes. The update of the dict only needs to
happen for online nodes, in the 'if' block.

Without this patch, offline nodes keep the data from the last node
that was not offline; end result is that all nodes are considered
online (unless the first node is offline, in which case an error will
be raised).
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent ec31a18f
......@@ -11025,8 +11025,7 @@ class IAllocator(object):
"i_pri_up_memory": i_p_up_mem,
}
pnr_dyn.update(node_results[nname])
node_results[nname] = pnr_dyn
node_results[nname] = pnr_dyn
return node_results
......
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