Skip to content

Commit

Permalink
fix: ensure test/setup/outputs.folder_id returns proper ID (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Apr 20, 2022
1 parent 321bed2 commit 8f72474
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/project-hierarchy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module "project-prod-gke" {
name = "hierarchy-sample-prod-gke"
org_id = var.organization_id
billing_account = var.billing_account
folder_id = google_folder.prod.id
folder_id = google_folder.prod.folder_id
}

module "project-factory" {
Expand All @@ -46,5 +46,5 @@ module "project-factory" {
name = "hierarchy-sample-factory"
org_id = var.organization_id
billing_account = var.billing_account
folder_id = google_folder.prod.id
folder_id = google_folder.prod.folder_id
}
2 changes: 1 addition & 1 deletion test/fixtures/fabric_project/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module "fabric-project" {
source = "../../../examples/fabric_project"

name = "fabric-project"
parent = var.folder_id
parent = "folders/${var.folder_id}"
billing_account = var.billing_account
activate_apis = [
"compute.googleapis.com",
Expand Down
2 changes: 1 addition & 1 deletion test/setup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module "pfactory_project" {
name = "ci-pfactory-tests"
random_project_id = true
org_id = var.org_id
folder_id = google_folder.ci_pfactory_folder.id
folder_id = google_folder.ci_pfactory_folder.folder_id
billing_account = var.billing_account

activate_apis = [
Expand Down
2 changes: 1 addition & 1 deletion test/setup/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ output "sa_key" {
}

output "folder_id" {
value = google_folder.ci_pfactory_folder.id
value = google_folder.ci_pfactory_folder.folder_id
}

output "org_id" {
Expand Down

0 comments on commit 8f72474

Please sign in to comment.