-
Notifications
You must be signed in to change notification settings - Fork 630
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
resource/cloudflare_tunnel_config: fix duration handling #2510
Conversation
638eb75
to
1937543
Compare
acceptance tests all passing
HTTP payloads have also been manually verified as sending the seconds value. |
cc @obezuk |
changelog detected ✅ |
This comment was marked as spam.
This comment was marked as spam.
Due to marshal/unmarshal support lacking in Go 1[1], we were previously sending nanosecond values to the API instead of the required seconds. This would have resulted in higher than usual timeout durations (10 seconds would have been sent as 1000000000 seconds since it duration unmarshals to nanoseconds). Updates all the instances of time duration handling in `cloudflare_tunnel_config` resource to use the newly introduced `TunnelDuration` to ensure we correctly setting the units. [1]: golang/go#10275
1937543
to
6423608
Compare
functional changes merged into #2541 to get CI green for version bumping |
This functionality has been released in v4.9.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! |
Due to marshal/unmarshal support lacking for
time.Duration
in Go 1, we were previously sending nanosecond values to the API instead of the required seconds. This would have resulted in higher than usual timeout durations (10 seconds would have been sent as 1000000000 seconds since it duration unmarshals to nanoseconds).Updates all the instances of time duration handling in
cloudflare_tunnel_config
resource to use the newly introducedTunnelDuration
to ensure we correctly setting the units.Depends on cloudflare/cloudflare-go#1303
Closes #2495