mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Logging that the DO droplet wasn't found before removing it
This commit is contained in:
parent
2504cb4624
commit
6a811e2e4f
@ -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
Block a user