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:
James E. Blair 2014-02-19 10:47:58 -08:00
parent eeffbc86ac
commit 2d45897802
1 changed files with 1 additions and 1 deletions

View File

@ -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))