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

Unignore empty values in the provider configuration block in 5.0.0 #6341

Conversation

modular-magician
Copy link
Collaborator

This PR stops the provider ignoring empty strings in provider blocks; if the value is in a user's config then it should be used by the code or removed by the user.

After muxing the provider we accidentally changed its behaviour to stop ignoring empty strings. That behaviour is what we'd expect the correct behaviour to be, so we are reverting to the old behaviour in a 4.x.x release (see GoogleCloudPlatform/magic-modules#8798) and then intentionally making the switch to the new behaviour as part of 5.0.0

ALSO I've decided against making similar changes in GoogleCloudPlatform/magic-modules#9015 because it would result in breaking changes for users when any datasources/resources are migrated to the plugin framework.

To do:

  • Remove validation of empty strings
  • Remove code that converts empty values to null values (awaiting sync from main to release branch)
  • Update tests

Release Note Template for Downstream PRs (will be copied)

provider: Empty strings in the provider configuration block will no longer be ignored when configuring the provider

Derived from GoogleCloudPlatform/magic-modules#9014

…(#9014)

* Stop validating `""` as valid `credentials` value in the PF provider config

* Remove code that makes PF ignore empty values

* Update PF config code tests to match change in PF config code behaviour

* Update remaining PF config code tests

* Update test for the PF version of credentials validator

* Make not on SDK version of credentials validator that it cannot distinguish between `""` in config vs zero values

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit fb04a99 into hashicorp:FEATURE-BRANCH-major-release-5.0.0 Sep 22, 2023
3 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