Skip to content

Commit

Permalink
allow removing rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
fa93hws committed Dec 2, 2019
1 parent a2b4df1 commit bcf4cb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sentry/resource_sentry_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ func resourceSentryKeyUpdate(d *schema.ResourceData, meta interface{}) error {
Window: rlw,
Count: rlc,
}
} else {
params.RateLimit = &sentryclient.ProjectKeyRateLimit{
Window: 0,
Count: 0,
}
}

key, _, err := client.ProjectKeys.Update(org, project, id, params)
Expand Down

0 comments on commit bcf4cb3

Please sign in to comment.