Commit 003a4051 by Michael DeHaan

Merge pull request #6104 from gianlucaborello/digitalocean_fix_deletion

Make sure droplet deletion works even when idempotency is achieved using 'name' and 'unique_name' rather than 'id'
parents f824a846 bf79833c
...@@ -348,7 +348,7 @@ def core(module): ...@@ -348,7 +348,7 @@ def core(module):
elif state in ('absent', 'deleted'): elif state in ('absent', 'deleted'):
# First, try to find a droplet by id. # 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 # If we couldn't find the droplet and the user is allowing unique
# hostnames, then check to see if a droplet with the specified # hostnames, then check to see if a droplet with the specified
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment