Skip to content

Commit

Permalink
refactor: instance_region to use default_region
Browse files Browse the repository at this point in the history
  • Loading branch information
nbugden committed May 3, 2024
1 parent 718acfe commit 74c0220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/projects/projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func TestProjects(t *testing.T) {
peering := gcloud.Runf(t, "compute networks peerings list --project %s", projectID).Array()[0]
assert.Contains(peering.Get("peerings.0.network").String(), tt.baseNetwork, "should have a peering network")

instanceRegion := utils.ValFromEnv(t, "TF_VAR_instance_region")
instanceRegion := terraform.OutputMap(t, bootstrap.GetTFOptions(), "common_config")["default_region"]
peeringSubnetworkSelfLink := projects.GetStringOutput("peering_subnetwork_self_link")
peeringSubnetworkSelfLinkSplitted := strings.Split(peeringSubnetworkSelfLink, "/")
peering_subnetwork_name := peeringSubnetworkSelfLinkSplitted[len(peeringSubnetworkSelfLinkSplitted)-1]
Expand Down

0 comments on commit 74c0220

Please sign in to comment.