From df92abe90fd721fb53b746720835cb21b29e2257 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 11 Nov 2016 13:48:14 -0800 Subject: [PATCH] vendor: manually modify Nomad jobspec parser to not validate drivers --- .../github.com/hashicorp/nomad/jobspec/parse.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/vendor/github.com/hashicorp/nomad/jobspec/parse.go b/vendor/github.com/hashicorp/nomad/jobspec/parse.go index 26ede1faf4..1b603fd44a 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