Skip to content

Commit 2011b29

Browse files
committed
fix: updated condition for metastore grants
1 parent d7bb0d5 commit 2011b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resource "databricks_metastore" "this" {
3333
}
3434

3535
resource "databricks_grants" "metastore" {
36-
count = var.create_metastore ? 1 : 0
36+
count = alltrue([var.create_metastore, length(var.metastore_grants) != 0]) ? 1 : 0
3737

3838
metastore = length(var.external_metastore_id) == 0 ? databricks_metastore.this[0].id : var.external_metastore_id
3939
dynamic "grant" {

0 commit comments

Comments
 (0)