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 <magic-modules@google.com>
@modular-magician modular-magician merged commit d2c6cd7 into hashicorp:main Sep 24, 2024
4 checks passed
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
@modular-magician modular-magician deleted the downstream-pr-8d575cda4c44eb16814af21559c1e7f7f21f91a7 branch November 16, 2024 23:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant