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

Make the PF provider configuration code process region selflinks in same way as the SDK provider #1544

Conversation

modular-magician
Copy link
Collaborator

Closes hashicorp/terraform-provider-google#15714

This PR isn't user facing so there's no release note. After this inconsistency was added to the provider users would have had region self links not shortened in the provider config, but the value would be shortened by the GetRegion functions used in resources. Redundancy between the two places prevented a bug being noticed.

Release Note Template for Downstream PRs (will be copied)

provider: Fixed an issue where the plugin-framework implementation of the provider handled default region values that were self-links differently to the SDK implementation. This issue is not believed to have affected users because of downstream functions that turn self links into region names.

Derived from GoogleCloudPlatform/magic-modules#9063

…ame way as the SDK provider (#9063)

* Add test for `TestGetRegionFromRegionSelfLink` used in SDK provider

* Add plugin framework equivalent for `TestGetRegionFromRegionSelfLink`

* Update PF provider config so test case passes - behaviour now equivalent to SDK
[upstream:ab3cf39d9609ee5e7e60cd6277132d0236fe0066]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner October 3, 2023 19:37
@modular-magician modular-magician requested review from iyabchen and removed request for a team October 3, 2023 19:37
@modular-magician modular-magician merged commit a0f3d1f into GoogleCloudPlatform:main Oct 3, 2023
@modular-magician modular-magician deleted the downstream-pr-ab3cf39d9609ee5e7e60cd6277132d0236fe0066 branch November 18, 2024 06:15
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.

Inconsistent behaviour between SDK and plugin framework provider config code when handling region self-links
1 participant