Skip to content

Commit

Permalink
change to list
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 22, 2024
1 parent cbc6439 commit 68625fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tags/tags.finops.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ resource "terraform_data" "finops" {

resource "terraform_data" "finops_roles" {
count = length(local.finops_roles) > 0 ? 1 : 0
input = local.finops_roles
input = tolist(local.finops_roles)

lifecycle {
precondition {
condition = !anytrue([for r in local.finops_roles: length(regexall("[^0-9a-z_]",r)) > 0 ])
condition = !anytrue([for r in tolist(local.finops_roles): length(regexall("[^0-9a-z_]",r)) > 0 ])
error_message = "finops.roles fields can contain only 0-9, a-z, and underscore."
}
}
Expand Down

0 comments on commit 68625fe

Please sign in to comment.