mirror of https://github.com/databricks/cli.git
Update bundle/config/loader/process_include.go
Co-authored-by: Lennart Kats (databricks) <lennart.kats@databricks.com>
This commit is contained in:
parent
a737977d6f
commit
d064566fc9
|
@ -44,7 +44,7 @@ func validateSingleResourceDefined(configRoot dyn.Value, ext, typ string) diag.D
|
||||||
configRoot,
|
configRoot,
|
||||||
dyn.NewPattern(dyn.Key("resources"), dyn.AnyKey(), dyn.AnyKey()),
|
dyn.NewPattern(dyn.Key("resources"), dyn.AnyKey(), dyn.AnyKey()),
|
||||||
func(p dyn.Path, v dyn.Value) (dyn.Value, error) {
|
func(p dyn.Path, v dyn.Value) (dyn.Value, error) {
|
||||||
// The key for the resource. Eg: "my_job" for jobs.my_job.
|
// The key for the resource, e.g. "my_job" for jobs.my_job.
|
||||||
k := p[2].Key()
|
k := p[2].Key()
|
||||||
// The type of the resource. Eg: "job" for jobs.my_job.
|
// The type of the resource. Eg: "job" for jobs.my_job.
|
||||||
typ := supportedResources[p[1].Key()].SingularName
|
typ := supportedResources[p[1].Key()].SingularName
|
||||||
|
|
Loading…
Reference in New Issue