Logging that the DO droplet wasn't found before removing it

This commit is contained in:
stack72 2015-11-05 17:32:57 +00:00
parent 2504cb4624
commit 6a811e2e4f
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@ func resourceDigitalOceanDropletRead(d *schema.ResourceData, meta interface{}) e
if err != nil { if err != nil {
// check if the droplet no longer exists. // check if the droplet no longer exists.
if resp.StatusCode == 404 { if resp.StatusCode == 404 {
log.Printf("[WARN] DigitalOcean Droplet (%s) not found", d.Id())
d.SetId("") d.SetId("")
return nil return nil
} }