Skip to content

Commit

Permalink
azurerm_web_application_firewall_policy - fix handling not found in…
Browse files Browse the repository at this point in the history
… read (#22982)
  • Loading branch information
turkenh committed Aug 16, 2023
1 parent 6baa598 commit 61fbba1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ func resourceWebApplicationFirewallPolicyRead(d *pluginsdk.ResourceData, meta in

resp, err := client.Get(ctx, *id)
if err != nil {
if !response.WasNotFound(resp.HttpResponse) {
if response.WasNotFound(resp.HttpResponse) {
log.Printf("[INFO] Web Application Firewall Policy %q does not exist - removing from state", d.Id())
d.SetId("")
return nil
Expand Down

0 comments on commit 61fbba1

Please sign in to comment.