Browse Source

Merge "metalsmith_instances: Handle an empty instance list"

changes/98/737398/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
d0dc2f9847
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tripleo_ansible/ansible_plugins/modules/metalsmith_instances.py

+ 3
- 0
tripleo_ansible/ansible_plugins/modules/metalsmith_instances.py 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)



Loading…
Cancel
Save