Skip to content

Commit 0cb60f3

Browse files
authored
Fix job_cluster.num_workers in databricks_job (#1284)
Apply standard schema modification rules to `num_workers` field in shared job clusters. Fix #1262
1 parent f3951dc commit 0cb60f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jobs/resource_job.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ var jobSchema = common.StructToSchema(JobSettings{},
450450
func(s map[string]*schema.Schema) map[string]*schema.Schema {
451451
jobSettingsSchema(&s, "")
452452
jobSettingsSchema(&s["task"].Elem.(*schema.Resource).Schema, "task.0.")
453+
jobSettingsSchema(&s["job_cluster"].Elem.(*schema.Resource).Schema, "job_cluster.0.")
453454
gitSourceSchema(s["git_source"].Elem.(*schema.Resource), "")
454455
if p, err := common.SchemaPath(s, "schedule", "pause_status"); err == nil {
455456
p.ValidateFunc = validation.StringInSlice([]string{"PAUSED", "UNPAUSED"}, false)

0 commit comments

Comments
 (0)