Logging that the DO droplet wasn't found before removing it
This commit is contained in:
parent
09e622e91b
commit
402df08047
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue