Skip to content

Commit

Permalink
Merge pull request #2833 from cwlowder/cwlowder/fix-fight-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz authored Oct 12, 2023
2 parents 83bcaf3 + 0bf5ef3 commit e5be743
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 e5be743

Please sign in to comment.