provider/azurerm: Fix not removing azurerm_storage_account 404 from
state
This commit is contained in:
parent
07fee770e4
commit
de4b0a9f00
|
@ -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