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.pull/6230/head
parent
16d3be03af
commit
ce5939c507
Loading…
Reference in New Issue