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 #16100

Conversation

modular-magician
Copy link
Collaborator

Closes #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 (hashicorp#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 <magic-modules@google.com>
@modular-magician modular-magician merged commit 2ea7325 into hashicorp:main Oct 3, 2023
4 checks passed
Copy link

github-actions bot commented Nov 3, 2023

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 Nov 3, 2023
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.

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