Update bundle/config/loader/process_include.go

Co-authored-by: Lennart Kats (databricks) <lennart.kats@databricks.com>
This commit is contained in:
shreyas-goenka 2024-10-02 23:57:26 +05:30 committed by GitHub
parent b288b0701d
commit b1d7c7bdb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func validateSingleResourceDefined(configRoot dyn.Value, ext, typ string) diag.D
configRoot,
dyn.NewPattern(dyn.Key("targets"), dyn.AnyKey(), dyn.Key("resources"), dyn.AnyKey(), dyn.AnyKey()),
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[4].Key()
// The type of the resource. Eg: "job" for jobs.my_job.
typ := supportedResources[p[3].Key()].SingularName