Skip to content

Commit

Permalink
fix fight mode for bot management resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Curtis Lowder committed Oct 11, 2023
1 parent bf62e71 commit 0bf5ef3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/2833.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/cloudflare_bot_management: fix fight mode not being sent to API
```
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func buildBotManagementParams(d *schema.ResourceData) cloudflare.UpdateBotManage
bm.EnableJS = cloudflare.BoolPtr(val.(bool))
}
if val, exists := d.GetOkExists("fight_mode"); exists {
bm.EnableJS = cloudflare.BoolPtr(val.(bool))
bm.FightMode = cloudflare.BoolPtr(val.(bool))
}

if val, exists := d.GetOkExists("sbfm_definitely_automated"); exists {
Expand Down

0 comments on commit 0bf5ef3

Please sign in to comment.