rkt: Return consistent error when not root

This commit is contained in:
Danielle Tomlinson
2018-12-20 12:55:23 +01:00
parent aadb3df03c
commit aa6b170506

View File

@@ -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
}