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

Made project CAI conversion prefer project number if available #659

Conversation

modular-magician
Copy link
Collaborator

Related to GoogleCloudPlatform/terraform-validator#182. Required for GoogleCloudPlatform/terraform-validator#197 to work properly. See also GoogleCloudPlatform/config-validator#161.

Basically the problem here is that CAI export for projects uses project number instead of project ID (the export format is what config-validator expects to receive.) However, project number is only available after the project has been created. For terraform-validator, we still need a way to handle projects prior to creation (and in particular to disambiguate between them) so we want to use project number if available, but still fall back to project id if necessary.

Release Note Template for Downstream PRs (will be copied)


Derived from GoogleCloudPlatform/magic-modules#4605

@modular-magician modular-magician merged commit 9ab4004 into GoogleCloudPlatform:master Mar 18, 2021
@modular-magician modular-magician deleted the downstream-pr-8d4c0ede45a2ac4e017e28362167cfc60d19c281 branch November 18, 2024 06:10
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