Skip to content

Commit

Permalink
fix: Make project_id output dependent on shared_vpc host enablement (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante authored Jan 31, 2020
1 parent 3c0a5b2 commit 75f9f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/vpc/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ output "network_self_link" {
}

output "project_id" {
value = var.project_id
value = var.shared_vpc_host ? coalesce(google_compute_shared_vpc_host_project.shared_vpc_host.*.project...) : google_compute_network.network.project
description = "VPC project id"
}

0 comments on commit 75f9f04

Please sign in to comment.