Skip to content

Commit

Permalink
all environments fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emocharnik committed Jul 19, 2022
1 parent 140c783 commit 885f895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data "scalr_environment" "available" {
}

locals {
all_environments = var.scalr_environments == ["*"]
all_environments = toset(var.scalr_environments) == toset(["*"])
environments = local.all_environments ? var.scalr_environments : data.scalr_environment.available.*.id
}

Expand Down

0 comments on commit 885f895

Please sign in to comment.