mirror of https://github.com/ansible/ansible.git
nova_compute: fix for partial match b/w params['name'] and an existing name
When there is an Openstack instance that has a name that's a partial match for module.params['name'], but a server with name module.params['name'] doesn't yet exist, this module would fail with a list index out of bounds error. This fixes that by filtering by exact name and only then getting the server from the list if the list is still not empty.reviewable/pr18780/r1
parent
922c51176c
commit
b58fbd6eb0
Loading…
Reference in New Issue