forked from cloudflare/terraform-provider-cloudflare
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make rate limiting
correlate
optional (cloudflare#281)
While looking into an issue in the Terraform provider, I've found that the `correlate` values for rate limiting are always being sent regardless of whether the value is set or not. This isn't really a big deal as I'm assuming the API endpoint just disregard it but for the Terraform provider, it does make the state management more difficult and messy than what it needs to be due to the nested types. Instead of always sending the value, I've updated the struct to allow `nil` and to omit when the values are empty resulting in a fix for the issues downstream.
- Loading branch information
1 parent
b688e90
commit 796cf82
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters