mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Formatting and typo fixes
This commit is contained in:
@@ -148,7 +148,7 @@ func dockerDriverHarness(t *testing.T, cfg map[string]interface{}) *drivers.Driv
|
||||
Logger: logger,
|
||||
PluginDir: "./plugins",
|
||||
InternalPlugins: map[loader.PluginID]*loader.InternalPluginConfig{
|
||||
PluginID: &loader.InternalPluginConfig{
|
||||
PluginID: {
|
||||
Config: cfg,
|
||||
Factory: func(hclog.Logger) interface{} {
|
||||
return harness
|
||||
@@ -985,13 +985,13 @@ func TestDockerDriver_Sysctl_Ulimit(t *testing.T) {
|
||||
|
||||
func TestDockerDriver_Sysctl_Ulimit_Errors(t *testing.T) {
|
||||
brokenConfigs := []map[string]string{
|
||||
map[string]string{
|
||||
{
|
||||
"nofile": "",
|
||||
},
|
||||
map[string]string{
|
||||
{
|
||||
"nofile": "abc:1234",
|
||||
},
|
||||
map[string]string{
|
||||
{
|
||||
"nofile": "1234:abc",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -36,7 +36,6 @@ type taskHandle struct {
|
||||
waitCh chan struct{}
|
||||
removeContainerOnExit bool
|
||||
net *structs.DriverNetwork
|
||||
imageID string
|
||||
|
||||
exitResult *drivers.ExitResult
|
||||
exitResultLock sync.Mutex
|
||||
|
||||
@@ -1740,7 +1740,7 @@ type LinuxResources struct {
|
||||
CpusetCpus string `protobuf:"bytes,6,opt,name=cpuset_cpus,json=cpusetCpus,proto3" json:"cpuset_cpus,omitempty"`
|
||||
// CpusetMems constrains the allowed set of memory nodes. Default: "" (not specified)
|
||||
CpusetMems string `protobuf:"bytes,7,opt,name=cpuset_mems,json=cpusetMems,proto3" json:"cpuset_mems,omitempty"`
|
||||
// PercentTicks is a compatability option for docker and should not be used
|
||||
// PercentTicks is a compatibility option for docker and should not be used
|
||||
PercentTicks float64 `protobuf:"fixed64,8,opt,name=PercentTicks,proto3" json:"PercentTicks,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
|
||||
@@ -386,7 +386,7 @@ message LinuxResources {
|
||||
string cpuset_cpus = 6;
|
||||
// CpusetMems constrains the allowed set of memory nodes. Default: "" (not specified)
|
||||
string cpuset_mems = 7;
|
||||
// PercentTicks is a compatability option for docker and should not be used
|
||||
// PercentTicks is a compatibility option for docker and should not be used
|
||||
double PercentTicks = 8;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user