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

Don't fail plan if project,region,zone defaults cannot be retrieved #16135

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

queeno
Copy link

@queeno queeno commented Oct 5, 2023

The DefaultProviderProject, DefaultProviderRegion and DefaultProviderZone funcs set respectively the project, region and zone in a diff if one is provided, unless they fetch the defaults from config. However, at times, these values may not be available during a plan, as they are dynamically computed at apply time.
We should avoid throwing an error if this is the case, but rather set an empty value in the diff.

Resolves #16133

The DefaultProviderProject, DefaultProviderRegion and
DefaultProviderZone funcs set respectively the project, region and zone
in a diff if one is provided, unless they fetch the defaults from config.
However, at times, these value may not be available during a plan, as
they are dynamically computed at apply time.
We should avoid throwing an error if this is the case, but rather set
an empty value in the diff.

Resolves hashicorp#16133
@github-actions
Copy link

github-actions bot commented Oct 5, 2023

** WARNING **: This repository is generated by https://github.com/GoogleCloudPlatform/magic-modules. Any changes made directly to this repository will likely be overwritten. If you have further questions, please feel free to ping your reviewer or, internal employees, reach out to one of the engineers. Thank you!

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.

terraform plan errors when the provider's default project is unknown during plan
1 participant