diff --git a/vendor/github.com/hashicorp/nomad/jobspec/parse.go b/vendor/github.com/hashicorp/nomad/jobspec/parse.go index 26ede1faf..1b603fd44 100644 --- a/vendor/github.com/hashicorp/nomad/jobspec/parse.go +++ b/vendor/github.com/hashicorp/nomad/jobspec/parse.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/hcl" "github.com/hashicorp/hcl/hcl/ast" - "github.com/hashicorp/nomad/client/driver" "github.com/hashicorp/nomad/nomad/structs" "github.com/mitchellh/mapstructure" ) @@ -538,22 +537,6 @@ func parseTasks(jobName string, taskGroupName string, result *[]*structs.Task, l return err } } - - // Instantiate a driver to validate the configuration - d, err := driver.NewDriver( - t.Driver, - driver.NewEmptyDriverContext(), - ) - - if err != nil { - return multierror.Prefix(err, - fmt.Sprintf("'%s', config ->", n)) - } - - if err := d.Validate(t.Config); err != nil { - return multierror.Prefix(err, - fmt.Sprintf("'%s', config ->", n)) - } } // Parse constraints