Skip to content

Commit

Permalink
Revert "Add depends_on to created_subnets data fetch"
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante authored Oct 29, 2019
1 parent 66ceb0a commit f70e583
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@ resource "google_compute_subnetwork" "subnetwork" {
}

data "google_compute_subnetwork" "created_subnets" {
count = length(var.subnets)
name = element(google_compute_subnetwork.subnetwork.*.name, count.index)
region = element(google_compute_subnetwork.subnetwork.*.region, count.index)
project = var.project_id
depends_on = [google_compute_subnetwork.subnetwork]
count = length(var.subnets)
name = element(google_compute_subnetwork.subnetwork.*.name, count.index)
region = element(google_compute_subnetwork.subnetwork.*.region, count.index)
project = var.project_id
}

/******************************************
Expand Down

0 comments on commit f70e583

Please sign in to comment.