1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make sure droplet deletion works even when idempotency is achieved using 'name' and 'unique_name' rather than 'id'

This commit is contained in:
Gianluca Borello 2014-02-20 22:17:55 -08:00
parent 92feed3851
commit bf79833c9d

View file

@ -348,7 +348,7 @@ def core(module):
elif state in ('absent', 'deleted'):
# First, try to find a droplet by id.
droplet = Droplet.find(id=getkeyordie('id'))
droplet = Droplet.find(module.params['id'])
# If we couldn't find the droplet and the user is allowing unique
# hostnames, then check to see if a droplet with the specified