Skip to content

Commit

Permalink
Merge pull request #6104 from gianlucaborello/digitalocean_fix_deletion
Browse files Browse the repository at this point in the history
Make sure droplet deletion works even when idempotency is achieved using 'name' and 'unique_name' rather than 'id'
  • Loading branch information
mpdehaan committed Mar 11, 2014
2 parents f824a84 + bf79833 commit 003a405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/cloud/digital_ocean
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 003a405

Please sign in to comment.