Skip to content

Commit

Permalink
Fix job_cluster.num_workers in databricks_job (#1284)
Browse files Browse the repository at this point in the history
Apply standard schema modification rules to `num_workers` field in shared job clusters.

Fix #1262
  • Loading branch information
nfx authored May 5, 2022
1 parent f3951dc commit 0cb60f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jobs/resource_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ var jobSchema = common.StructToSchema(JobSettings{},
func(s map[string]*schema.Schema) map[string]*schema.Schema {
jobSettingsSchema(&s, "")
jobSettingsSchema(&s["task"].Elem.(*schema.Resource).Schema, "task.0.")
jobSettingsSchema(&s["job_cluster"].Elem.(*schema.Resource).Schema, "job_cluster.0.")
gitSourceSchema(s["git_source"].Elem.(*schema.Resource), "")
if p, err := common.SchemaPath(s, "schedule", "pause_status"); err == nil {
p.ValidateFunc = validation.StringInSlice([]string{"PAUSED", "UNPAUSED"}, false)
Expand Down

0 comments on commit 0cb60f3

Please sign in to comment.