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 09e622e91b
commit 402df08047
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 {
// 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
}