Use correct diskimage when building diskimages

When checking for missing DIB images if a missing image was found
nodepool would build that image. Problem was that it indexed the
diskimage config using the provider image's name not the provider
image's diskimage name. Update the key lookup to use the diskimage name.

Change-Id: I358c09a6d88ba34abcd0d42e37d40c5bb68e79c7
This commit is contained in:
Clark Boylan 2015-03-31 12:36:22 -07:00 committed by Monty Taylor
parent caf01c43c2
commit bfc07cdaa4
1 changed files with 1 additions and 1 deletions

View File

@ -1850,7 +1850,7 @@ class NodePool(threading.Thread):
if not found:
# only build the image, we'll recheck again
self.log.warning("Missing disk image %s" % image.name)
self.buildImage(self.config.diskimages[image.name])
self.buildImage(self.config.diskimages[image.diskimage])
else:
found = False
for snap_image in session.getSnapshotImages():