diff --git a/drivers/rawexec/driver.go b/drivers/rawexec/driver.go index df611f084..23b5ab977 100644 --- a/drivers/rawexec/driver.go +++ b/drivers/rawexec/driver.go @@ -18,8 +18,8 @@ import ( "github.com/hashicorp/nomad/client/lib/cpustats" "github.com/hashicorp/nomad/drivers/shared/eventer" "github.com/hashicorp/nomad/drivers/shared/executor" - "github.com/hashicorp/nomad/helper/pluginutils/hclutils" "github.com/hashicorp/nomad/drivers/shared/validators" + "github.com/hashicorp/nomad/helper/pluginutils/hclutils" "github.com/hashicorp/nomad/helper/pluginutils/loader" "github.com/hashicorp/nomad/plugins/base" "github.com/hashicorp/nomad/plugins/drivers" @@ -355,7 +355,6 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive return nil, nil, fmt.Errorf("failed to decode driver config: %v", err) } - if driverConfig.OOMScoreAdj < 0 { return nil, nil, fmt.Errorf("oom_score_adj must not be negative") }