From 8d6bd6dca4ab10eec29c9faf4e41bdc66741cba2 Mon Sep 17 00:00:00 2001 From: Charlie Voiselle Date: Mon, 8 Jan 2018 15:56:07 -0500 Subject: [PATCH] fix typo Priviledge -> privilege --- CHANGELOG.md | 2 +- client/driver/executor/executor_linux_test.go | 2 +- client/driver/structs/structs.go | 2 +- client/driver/utils.go | 2 +- nomad/structs/structs.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e23e1d43d..9c840713f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -656,7 +656,7 @@ BUG FIXES: * client: Killing an allocation doesn't cause allocation stats to block [[GH-1454](https://github.com/hashicorp/nomad/issues/1454)] * driver/docker: Disable swap on docker driver [[GH-1480](https://github.com/hashicorp/nomad/issues/1480)] - * driver/docker: Fix improper gating on priviledged mode [[GH-1506](https://github.com/hashicorp/nomad/issues/1506)] + * driver/docker: Fix improper gating on privileged mode [[GH-1506](https://github.com/hashicorp/nomad/issues/1506)] * driver/docker: Default network type is "nat" on Windows [[GH-1521](https://github.com/hashicorp/nomad/issues/1521)] * driver/docker: Cleanup created volume when destroying container [[GH-1519](https://github.com/hashicorp/nomad/issues/1519)] * driver/rkt: Set host environment variables [[GH-1581](https://github.com/hashicorp/nomad/issues/1581)] diff --git a/client/driver/executor/executor_linux_test.go b/client/driver/executor/executor_linux_test.go index 905d88000..ad73f13e3 100644 --- a/client/driver/executor/executor_linux_test.go +++ b/client/driver/executor/executor_linux_test.go @@ -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)) diff --git a/client/driver/structs/structs.go b/client/driver/structs/structs.go index aed1e831a..6966205f7 100644 --- a/client/driver/structs/structs.go +++ b/client/driver/structs/structs.go @@ -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 diff --git a/client/driver/utils.go b/client/driver/utils.go index 23a64c89c..5fba8071f 100644 --- a/client/driver/utils.go +++ b/client/driver/utils.go @@ -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 } diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index 82ef23e4c..32e624cd2 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -1070,7 +1070,7 @@ type Node struct { // SecretID is an ID that is only known by the Node and the set of Servers. // It is not accessible via the API and is used to authenticate nodes - // conducting priviledged activities. + // conducting privileged activities. SecretID string // Datacenter for this node