Skip to content

Commit 2936d1d

Browse files
committed
fix: changed cluster attribute
1 parent dff3af8 commit 2936d1d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

cluster.tf

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,14 @@ resource "databricks_cluster" "cluster" {
2727
single_user_name = each.value.single_user_name
2828
custom_tags = merge(each.value.single_node_enable ? { "ResourceClass" = "SingleNode" } : {}, each.value.custom_tags)
2929

30-
dynamic "azure_attributes" {
31-
for_each = each.value.single_node_enable == true ? [] : [1]
32-
content {
33-
availability = each.value.availability
34-
first_on_demand = each.value.first_on_demand
35-
spot_bid_max_price = each.value.spot_bid_max_price
36-
}
30+
azure_attributes {
31+
availability = each.value.availability
32+
first_on_demand = each.value.first_on_demand
33+
spot_bid_max_price = each.value.spot_bid_max_price
3734
}
3835

3936
dynamic "autoscale" {
40-
for_each = each.value.single_node_enable == true ? [] : [1]
37+
for_each = each.value.single_node_enable ? [] : [1]
4138
content {
4239
min_workers = each.value.min_workers
4340
max_workers = each.value.max_workers

0 commit comments

Comments
 (0)