mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #5878 from stack72/f-azurerm-storage-acc-404
provider/azurerm: Fix not removing azurerm_storage_account 404 from state
This commit is contained in:
commit
8af5315b12
@ -200,7 +200,7 @@ func resourceArmStorageAccountRead(d *schema.ResourceData, meta interface{}) err
|
||||
|
||||
resp, err := client.GetProperties(resGroup, name)
|
||||
if err != nil {
|
||||
if resp.StatusCode == http.StatusNoContent {
|
||||
if resp.StatusCode == http.StatusNotFound {
|
||||
d.SetId("")
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user