Skip to content

Commit

Permalink
chore: remove additional code
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrSierkin-Ki committed Mar 28, 2024
1 parent 8a912fa commit f740c56
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,13 @@ variable "schema_grants" {
error_message = "Variable `schema_grants` fails validation - only one of `privileges` or `all_privileges` can be set."
}
validation {
condition = alltrue([for grant in var.schema_grants :
condition = alltrue([for grant in var.schema_grants :
sum([
grant.all_schemas_in_database != null ? 1 : 0,
grant.future_schemas_in_database != null ? 1 : 0,
grant.schema_name != null ? 1 : 0
]) == 1
])
sum(
[
grant.all_schemas_in_database != null ? 1 : 0,
grant.future_schemas_in_database != null ? 1 : 0,
grant.schema_name != null ? 1 : 0]) == 1
]
)
error_message = "Variable `schema_grants` fails validation - only one of `all_schemas_in_database`, `future_schemas_in_database`, or `schema_name` can be set."
}
}
Expand Down

0 comments on commit f740c56

Please sign in to comment.