mirror of
https://github.com/kemko/nomad.git
synced 2026-01-11 12:55:42 +03:00
rkt: Return consistent error when not root
This commit is contained in:
@@ -272,7 +272,7 @@ func (d *Driver) buildFingerprint() *drivers.Fingerprint {
|
||||
if syscall.Geteuid() != 0 {
|
||||
d.logger.Debug("must run as root user, disabling")
|
||||
fingerprint.Health = drivers.HealthStateUndetected
|
||||
fingerprint.HealthDescription = "driver must run as root user"
|
||||
fingerprint.HealthDescription = drivers.DriverRequiresRootMessage
|
||||
return fingerprint
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user