mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
style: format
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user