Skip to content

Commit

Permalink
update finops_roles check
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 22, 2024
1 parent 2c60ad8 commit cbc6439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tags/tags.finops.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "terraform_data" "finops_roles" {

lifecycle {
precondition {
condition = any([for r in local.finops_roles: length(regexall("[^0-9a-z_]",r)) > 0 ])
condition = !anytrue([for r in 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 cbc6439

Please sign in to comment.