Skip to content

Commit

Permalink
Merge pull request #5878 from stack72/f-azurerm-storage-acc-404
Browse files Browse the repository at this point in the history
provider/azurerm: Fix not removing azurerm_storage_account 404 from state
  • Loading branch information
jen20 committed Mar 28, 2016
2 parents 07fee77 + de4b0a9 commit 8af5315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/providers/azurerm/resource_arm_storage_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8af5315

Please sign in to comment.