We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7bb0d5 commit 2011b29Copy full SHA for 2011b29
main.tf
@@ -33,7 +33,7 @@ resource "databricks_metastore" "this" {
33
}
34
35
resource "databricks_grants" "metastore" {
36
- count = var.create_metastore ? 1 : 0
+ count = alltrue([var.create_metastore, length(var.metastore_grants) != 0]) ? 1 : 0
37
38
metastore = length(var.external_metastore_id) == 0 ? databricks_metastore.this[0].id : var.external_metastore_id
39
dynamic "grant" {
0 commit comments