Skip to content

Commit

Permalink
Merge pull request #93 from terraform-google-modules/revert-81-fix-da…
Browse files Browse the repository at this point in the history
…ta-subnets-fetch-depends-on

Revert "Add depends_on to created_subnets data fetch"
  • Loading branch information
morgante authored Oct 30, 2019
2 parents 66ceb0a + f70e583 commit c04bdd3
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 c04bdd3

Please sign in to comment.