Skip to content

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

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

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 (#11798)

[upstream:8d575cda4c44eb16814af21559c1e7f7f21f91a7]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner September 24, 2024 20:21
@modular-magician modular-magician requested review from roaks3 and removed request for a team September 24, 2024 20:21
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@modular-magician modular-magician merged commit 13fd070 into GoogleCloudPlatform:main Sep 24, 2024
4 of 5 checks passed
@modular-magician modular-magician deleted the downstream-pr-8d575cda4c44eb16814af21559c1e7f7f21f91a7 branch November 18, 2024 06:10
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