Skip to content

Commit 683ae07

Browse files
author
Olivier Cervello
authored
fix: Resolve error with destroy and shared VPC host config (#168)
* Fix #163 * Update outputs.tf
1 parent 2fff1e7 commit 683ae07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/vpc/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ output "network_self_link" {
3030
}
3131

3232
output "project_id" {
33-
value = var.shared_vpc_host ? coalesce(flatten([google_compute_shared_vpc_host_project.shared_vpc_host.*.project])...) : google_compute_network.network.project
33+
value = var.shared_vpc_host ? google_compute_shared_vpc_host_project.shared_vpc_host.*.project[0] : google_compute_network.network.project
3434
description = "VPC project id"
3535
}

0 commit comments

Comments
 (0)