Commit 84ad88dd by Rahul Dutta

Bug Fix: Remove FPGA entry from the list of systems to avoid multiple selection

parent 58548d01
......@@ -678,6 +678,11 @@ def allocate_node(name, description, requirements):
fpga_selected=list_fpga[:int(num_fpga)]
allocated_details["FPGA"] = fpga_selected
allocated_details["Systems"] = fpga_selected
#Deleting FPGA entry from available systems
for fpga_entry in fpga_selected:
LOG.error("FPGA"+str(fpga_entry))
l_available_Systems.remove(fpga_entry)
if "number" in requirements["system"]:
no_of_system=requirements["system"]["number"]
no_of_system = int(no_of_system) - int(num_fpga)
......
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 sign in to comment