From 76644e0f1ab3ac60e3101c6277cd23627ff4cdfd Mon Sep 17 00:00:00 2001 From: Stephen Kirby Date: Tue, 26 Sep 2023 18:42:01 +0000 Subject: [PATCH] complete minus regions --- fly-region/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fly-region/main.tf b/fly-region/main.tf index 6df6299..ceca802 100644 --- a/fly-region/main.tf +++ b/fly-region/main.tf @@ -272,7 +272,7 @@ data "coder_parameter" "fly_region" { description = var.description default = var.default mutable = var.mutable - dynamic "option" { # TODO: maybe set var.regions to all possible regions to avoid unessecary checks + dynamic "option" { for_each = { for k, v in local.regions : k => v if anytrue([for d in var.regions : k == d ]) || length(var.regions) == 0 } content { name = try(var.custom_names[option.key], option.value.name)