Skip to content

Commit

Permalink
Logging that the DO droplet wasn't found before removing it
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Nov 5, 2015
1 parent 2504cb4 commit 6a811e2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ func resourceDigitalOceanDropletRead(d *schema.ResourceData, meta interface{}) e
if err != nil {
// check if the droplet no longer exists.
if resp.StatusCode == 404 {
log.Printf("[WARN] DigitalOcean Droplet (%s) not found", d.Id())
d.SetId("")
return nil
}
Expand Down

0 comments on commit 6a811e2

Please sign in to comment.