Skip to content

Commit c04bdd3

Browse files
authored
Merge pull request #93 from terraform-google-modules/revert-81-fix-data-subnets-fetch-depends-on
Revert "Add depends_on to created_subnets data fetch"
2 parents 66ceb0a + f70e583 commit c04bdd3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main.tf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ resource "google_compute_subnetwork" "subnetwork" {
5959
}
6060

6161
data "google_compute_subnetwork" "created_subnets" {
62-
count = length(var.subnets)
63-
name = element(google_compute_subnetwork.subnetwork.*.name, count.index)
64-
region = element(google_compute_subnetwork.subnetwork.*.region, count.index)
65-
project = var.project_id
66-
depends_on = [google_compute_subnetwork.subnetwork]
62+
count = length(var.subnets)
63+
name = element(google_compute_subnetwork.subnetwork.*.name, count.index)
64+
region = element(google_compute_subnetwork.subnetwork.*.region, count.index)
65+
project = var.project_id
6766
}
6867

6968
/******************************************

0 commit comments

Comments
 (0)