Skip to content

Commit 8409f72

Browse files
legal90imrannayer
andauthored
fix: Fix zone auto-detection when var.zones are not set (#534)
Co-authored-by: Imran Nayer <[email protected]>
1 parent 5102a7b commit 8409f72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/mysql/read_replica.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ locals {
2323
}
2424

2525
data "google_compute_zones" "available" {
26-
count = var.zone == null ? 0 : 1
26+
count = var.zone == null ? 1 : 0
2727
project = var.project_id
2828
region = var.region
2929
}

modules/postgresql/read_replica.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ locals {
2323
}
2424

2525
data "google_compute_zones" "available" {
26-
count = var.zone == null ? 0 : 1
26+
count = var.zone == null ? 1 : 0
2727
project = var.project_id
2828
region = var.region
2929
}

0 commit comments

Comments
 (0)