Fix typo in allocation
This was causing the target distribution for all images to be calculated according to the current values of the last image through the previous loop. Change-Id: I3d5190c78849b77933e18c5cf6a9c7443945b6cd
This commit is contained in:
parent
eeffbc86ac
commit
2d45897802
|
@ -947,7 +947,7 @@ class NodePool(threading.Thread):
|
|||
ar = allocation.AllocationRequest(image.name,
|
||||
image_demand[image.name])
|
||||
|
||||
nodes = session.getNodes(image_name=image_name,
|
||||
nodes = session.getNodes(image_name=image.name,
|
||||
target_name=target.name)
|
||||
allocation_requests[image.name] = ar
|
||||
ar.addTarget(at, image.min_ready, len(nodes))
|
||||
|
|
Loading…
Reference in New Issue