mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
client/fingerprint: move existing cgroup concerns to cgutil
This commit is contained in:
@@ -9,9 +9,10 @@ import (
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/nomad/client/lib/cgutil"
|
||||
|
||||
"github.com/hashicorp/consul-template/signals"
|
||||
hclog "github.com/hashicorp/go-hclog"
|
||||
"github.com/hashicorp/nomad/client/fingerprint"
|
||||
"github.com/hashicorp/nomad/drivers/shared/eventer"
|
||||
"github.com/hashicorp/nomad/drivers/shared/executor"
|
||||
"github.com/hashicorp/nomad/drivers/shared/resolvconf"
|
||||
@@ -281,7 +282,7 @@ func (d *Driver) buildFingerprint() *drivers.Fingerprint {
|
||||
return fp
|
||||
}
|
||||
|
||||
mount, err := fingerprint.FindCgroupMountpointDir()
|
||||
mount, err := cgutil.FindCgroupMountpointDir()
|
||||
if err != nil {
|
||||
fp.Health = drivers.HealthStateUnhealthy
|
||||
fp.HealthDescription = drivers.NoCgroupMountMessage
|
||||
|
||||
Reference in New Issue
Block a user