Skip to content

Commit

Permalink
[firewall-config] fix typo in docs (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
sueplex authored Oct 10, 2024
1 parent 7682ba9 commit ab51749
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/resources/firewall_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ resource "vercel_firewall_config" "example" {
algo = "fixed_window"
action = "deny"
}
actionDuration = "5m"
action_duration = "5m"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/vercel_firewall_config/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ resource "vercel_firewall_config" "example" {
algo = "fixed_window"
action = "deny"
}
actionDuration = "5m"
action_duration = "5m"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions vercel/resource_firewall_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ func (r *FirewallRule) Mitigate() (client.Mitigate, error) {
if !r.Action.Redirect.IsNull() {
rd := &client.Redirect{}
diags := r.Action.Redirect.As(context.Background(), rd, basetypes.ObjectAsOptions{
UnhandledNullAsEmpty: true,
UnhandledUnknownAsEmpty: true,
UnhandledNullAsEmpty: false,
UnhandledUnknownAsEmpty: false,
})
if diags.HasError() {
return mit, fmt.Errorf("error converting rate limit: %s - %s", diags[0].Summary(), diags[0].Detail())
Expand Down

0 comments on commit ab51749

Please sign in to comment.