mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-09 00:42:48 -04:00
providers/digitalocean: fix 404 check
This commit is contained in:
parent
d70b451b58
commit
9d75352fd3
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ func resource_digitalocean_droplet_destroy(
|
|||
err := client.DestroyDroplet(s.ID)
|
||||
|
||||
// Handle remotely destroyed droplets
|
||||
if strings.Contains(err.Error(), "404 Not Found") {
|
||||
if err != nil && strings.Contains(err.Error(), "404 Not Found") {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue