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

Fix removing host_error_timeout_seconds that was broken due to an API bug #19611

Conversation

modular-magician
Copy link
Collaborator

references GoogleCloudPlatform/magic-modules#11652

When this parameter is removed or set to null it couldn't be removed because the instances.SetScheduling API method doesn't remove parameters that are not mentioned in the request (contrary to for example instances.Update). null cannot be sent directly in the request on an Int field because it's rounded to 0 in go.

So this is a workaround to clear the field when a user removes it's value and 0 or nil in go is taken as null in the API

Release Note Template for Downstream PRs (will be copied)

compute: `host_error_timeout_seconds` can now be set to null on `google_compute_instance`

Derived from GoogleCloudPlatform/magic-modules#11798

…PI bug (hashicorp#11798)

[upstream:8d575cda4c44eb16814af21559c1e7f7f21f91a7]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit d2c6cd7 into hashicorp:main Sep 24, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant