Merge "metalsmith_instances: Handle an empty instance list"

This commit is contained in:
Zuul 2020-06-22 22:06:34 +00:00 committed by Gerrit Code Review
commit d0dc2f9847

View File

@ -233,6 +233,9 @@ def _release_nodes(provisioner, node_ids):
def provision(provisioner, instances, timeout, concurrency, clean_up, wait):
if not instances:
return False, []
# first, ensure all instances are reserved
reserve(provisioner, [i for i in instances if not i.get('name')], clean_up)