Skip to content

Removed unnecessary check for name in spanner database post_create #9817

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

spanner database. post_create relied specifically on accessing opRes, but name is actually a settable & required field on that resource so it's not necessary to pull it from the operation as far as I can tell.

This code will stop working as a consequence of changes for hashicorp/terraform-provider-google#22214, because this resource will no longer be detected as requiring opRes to be set (because there are no computed fields that need to be set after create.)

This part of the post_create template was added in this commit, after this round of review. I don't see anything indicating that this was added in response to a specific problem, and name should always be available anyway (because it's a required field) so I think this may have been a mistake.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.


Derived from GoogleCloudPlatform/magic-modules#13695

…13695)

[upstream:07c000c081f1502692168134ffdacf2860592814]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner April 16, 2025 22:42
@modular-magician modular-magician merged commit 5f7b4cc into hashicorp:main Apr 16, 2025
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