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:
parent
caf01c43c2
commit
bfc07cdaa4
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue