-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when geo_restrictions aren't set, set as nil and not empty string #2319
when geo_restrictions aren't set, set as nil and not empty string #2319
Conversation
changelog detected ✅ |
previously, we would send `geo_restrictions":{"label":""}`, now we won't send anything at all. Resolves cloudflare#2318 ```release-note:bug resource/cloudflare_custom_ssl: fix json sent to API when geo_restrictions are not used (cloudflare#1472, cloudflare#2318) ```
…like in the request struct noticed this while working on cloudflare/terraform-provider-cloudflare#2319 but this isn't a requirement for that.
5778016
to
07a8305
Compare
note that there is this test here: https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/internal/sdkv2provider/resource_cloudflare_custom_ssl_test.go#L113 but the API returns the same value regardless of if you send empty string or nil (before/after) this change, so we have an internal ticket to adjust that. |
acceptance tests all look good
|
…like in the request struct noticed this while working on cloudflare/terraform-provider-cloudflare#2319 but this isn't a requirement for that.
This functionality has been released in v4.3.0 of the Terraform Cloudflare Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
previously, we would send
geo_restrictions":{"label":""}
, now we won't send anything at all.Closes #2318
Closes #1472