Skip to content

Commit

Permalink
Remove usage of GOOGLE_PROJECT_NUMBER (#10356)
Browse files Browse the repository at this point in the history
  • Loading branch information
zli82016 authored Apr 3, 2024
1 parent 679461f commit 90893d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mmv1/third_party/terraform/acctest/bootstrap_test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,9 @@ const SharedTestGlobalAddressPrefix = "tf-bootstrap-addr-"
// params are the functions to set compute global address
func BootstrapSharedTestGlobalAddress(t *testing.T, testId string, params ...func(*AddressSettings)) string {
project := envvar.GetTestProjectFromEnv()
projectNumber := envvar.GetTestProjectNumberFromEnv()
addressName := SharedTestGlobalAddressPrefix + testId
networkName := BootstrapSharedTestNetwork(t, testId)
networkId := fmt.Sprintf("projects/%v/global/networks/%v", projectNumber, networkName)
networkId := fmt.Sprintf("projects/%v/global/networks/%v", project, networkName)

config := BootstrapConfig(t)
if config == nil {
Expand Down

0 comments on commit 90893d8

Please sign in to comment.