Skip to content

Commit

Permalink
fix: Fix zone auto-detection when var.zones are not set (#534)
Browse files Browse the repository at this point in the history
Co-authored-by: Imran Nayer <imrannayer@google.com>
  • Loading branch information
legal90 and imrannayer committed Nov 3, 2023
1 parent 5102a7b commit 8409f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/mysql/read_replica.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ locals {
}

data "google_compute_zones" "available" {
count = var.zone == null ? 0 : 1
count = var.zone == null ? 1 : 0
project = var.project_id
region = var.region
}
Expand Down
2 changes: 1 addition & 1 deletion modules/postgresql/read_replica.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ locals {
}

data "google_compute_zones" "available" {
count = var.zone == null ? 0 : 1
count = var.zone == null ? 1 : 0
project = var.project_id
region = var.region
}
Expand Down

0 comments on commit 8409f72

Please sign in to comment.