Skip to content

Commit a452948

Browse files
committed
Fix references to counted network resource
1 parent d11df9a commit a452948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
*/
1616

1717
output "network_name" {
18-
value = var.create_network ? google_compute_network.network.name : data.google_compute_network.network.name
18+
value = var.create_network ? google_compute_network.network[0].name : data.google_compute_network.network.name
1919
description = "The name of the VPC being created"
2020
}
2121

2222
output "network_self_link" {
23-
value = var.create_network ? google_compute_network.network.self_link : data.google_compute_network.network.self_link
23+
value = var.create_network ? google_compute_network.network[0].self_link : data.google_compute_network.network.self_link
2424
description = "The URI of the VPC being created"
2525
}
2626

0 commit comments

Comments
 (0)