Skip to content

Commit

Permalink
Fix references to counted network resource
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-lane committed Oct 30, 2019
1 parent d11df9a commit a452948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*/

output "network_name" {
value = var.create_network ? google_compute_network.network.name : data.google_compute_network.network.name
value = var.create_network ? google_compute_network.network[0].name : data.google_compute_network.network.name
description = "The name of the VPC being created"
}

output "network_self_link" {
value = var.create_network ? google_compute_network.network.self_link : data.google_compute_network.network.self_link
value = var.create_network ? google_compute_network.network[0].self_link : data.google_compute_network.network.self_link
description = "The URI of the VPC being created"
}

Expand Down

0 comments on commit a452948

Please sign in to comment.