Merge pull request #3745 from hashicorp/cv-fix-typo-priviledge
Found more priviledge.
This commit is contained in:
commit
e6ed72b69c
|
@ -665,7 +665,7 @@ BUG FIXES:
|
||||||
* client: Killing an allocation doesn't cause allocation stats to block
|
* client: Killing an allocation doesn't cause allocation stats to block
|
||||||
[[GH-1454](https://github.com/hashicorp/nomad/issues/1454)]
|
[[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: 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: 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/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)]
|
* driver/rkt: Set host environment variables [[GH-1581](https://github.com/hashicorp/nomad/issues/1581)]
|
||||||
|
|
|
@ -116,7 +116,7 @@ func (d *JavaDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool,
|
||||||
// Only enable if we are root and cgroups are mounted when running on linux systems.
|
// Only enable if we are root and cgroups are mounted when running on linux systems.
|
||||||
if runtime.GOOS == "linux" && (syscall.Geteuid() != 0 || !cgroupsMounted(node)) {
|
if runtime.GOOS == "linux" && (syscall.Geteuid() != 0 || !cgroupsMounted(node)) {
|
||||||
if d.fingerprintSuccess == nil || *d.fingerprintSuccess {
|
if d.fingerprintSuccess == nil || *d.fingerprintSuccess {
|
||||||
d.logger.Printf("[DEBUG] driver.java: root priviledges and mounted cgroups required on linux, disabling")
|
d.logger.Printf("[DEBUG] driver.java: root privileges and mounted cgroups required on linux, disabling")
|
||||||
}
|
}
|
||||||
delete(node.Attributes, "driver.java")
|
delete(node.Attributes, "driver.java")
|
||||||
d.fingerprintSuccess = helper.BoolToPtr(false)
|
d.fingerprintSuccess = helper.BoolToPtr(false)
|
||||||
|
|
Loading…
Reference in a new issue