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

reviewable/pr18780/r1
Gianluca Borello 11 years ago
parent d80b9ac137
commit 0ebbd6e754

@ -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

Loading…
Cancel
Save