Build VM images when min_ready >= 0.

* devstack-vm-update-image.py: Previously we would not build new VM
images when the base_image.min_ready value was <= 0. Change this check
to only skip image updates when the min_ready value is < 0. This allows
us to have up to date images even when we do not actually want to have
any slave VMs running on that provider. You can still prevent image
building by setting min_ready to -1.

Change-Id: If63c2cffeca13f0f7281fe83432926d48323aa69
This commit is contained in:
Clark Boylan
2013-05-16 10:18:49 -07:00
parent 051b48df41
commit 55ff5d4f3e

View File

@@ -333,7 +333,7 @@ def main():
client = utils.get_client(provider)
for base_image in provider.base_images:
if base_image.min_ready <= 0:
if base_image.min_ready < 0:
continue
print "Working on base image %s" % base_image.name