Skip to content
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

Ignore check for explicit assignment of optional fields #97

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

tomasbasham
Copy link
Member

Some optional fields with default values were not being persisted correctly when a resource was created. This was due to how Terraform and Go handles zero-values for specific data types.

This commit ensures that these fields are always sent to the API despite their value having been changed since the last application of the Terraform configuration. This prevents having to check whether an optional value has been explicitly set, or has been given the default (often zero-value) value.

@tomasbasham tomasbasham force-pushed the ignore-check-for-explicit-assignment branch from 3e1a736 to 4b07827 Compare October 12, 2022 14:28
Some optional fields with default values were not being persisted
correctly when a resource was created. This was due to how Terraform and
Go handles zero-values for specific data types.

This commit ensures that these fields are always sent to the API despite
their value having been changed since the last application of the
Terraform configuration. This prevents having to check whether an
optional value has been explicitly set, or has been given the default
(often zero-value) value.
@tomasbasham tomasbasham merged commit 159f42d into master Oct 12, 2022
@tomasbasham tomasbasham deleted the ignore-check-for-explicit-assignment branch October 12, 2022 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

statuscake_uptime_check.trigger_rate does not take effect initially on create
2 participants