From 6a811e2e4f075b645249ecfb2512e0266b602e8e Mon Sep 17 00:00:00 2001 From: stack72 Date: Thu, 5 Nov 2015 17:32:57 +0000 Subject: [PATCH] Logging that the DO droplet wasn't found before removing it --- builtin/providers/digitalocean/resource_digitalocean_droplet.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/digitalocean/resource_digitalocean_droplet.go b/builtin/providers/digitalocean/resource_digitalocean_droplet.go index a4f80015b..050577854 100644 --- a/builtin/providers/digitalocean/resource_digitalocean_droplet.go +++ b/builtin/providers/digitalocean/resource_digitalocean_droplet.go @@ -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 }