mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
fix typo
Priviledge -> privilege
This commit is contained in:
@@ -69,7 +69,7 @@ func TestExecutor_IsolationAndConstraints(t *testing.T) {
|
||||
|
||||
execCmd.FSIsolation = true
|
||||
execCmd.ResourceLimits = true
|
||||
execCmd.User = dstructs.DefaultUnpriviledgedUser
|
||||
execCmd.User = dstructs.DefaultUnprivilegedUser
|
||||
|
||||
executor := NewExecutor(log.New(os.Stdout, "", log.LstdFlags))
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
const (
|
||||
// The default user that the executor uses to run tasks
|
||||
DefaultUnpriviledgedUser = "nobody"
|
||||
DefaultUnprivilegedUser = "nobody"
|
||||
|
||||
// CheckBufSize is the size of the check output result
|
||||
CheckBufSize = 4 * 1024
|
||||
|
||||
@@ -178,7 +178,7 @@ func GetAbsolutePath(bin string) (string, error) {
|
||||
// dstructs.DefaultUnprivilegedUser if none was given.
|
||||
func getExecutorUser(task *structs.Task) string {
|
||||
if task.User == "" {
|
||||
return dstructs.DefaultUnpriviledgedUser
|
||||
return dstructs.DefaultUnprivilegedUser
|
||||
}
|
||||
return task.User
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user