Fix undefined error in use of errors package
Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
parent
3dbd6a2498
commit
0e6c7bf931
@ -406,7 +406,7 @@ func ValidatePluginConfig(ctx context.Context, c *PluginConfig) error {
|
|||||||
log.G(ctx).Warning("`runtime_root` is deprecated, please use runtime `options` instead")
|
log.G(ctx).Warning("`runtime_root` is deprecated, please use runtime `options` instead")
|
||||||
}
|
}
|
||||||
if !r.PrivilegedWithoutHostDevices && r.PrivilegedWithoutHostDevicesAllDevicesAllowed {
|
if !r.PrivilegedWithoutHostDevices && r.PrivilegedWithoutHostDevicesAllDevicesAllowed {
|
||||||
return errors.Errorf("`privileged_without_host_devices_all_devices_allowed` requires `privileged_without_host_devices` to be enabled")
|
return errors.New("`privileged_without_host_devices_all_devices_allowed` requires `privileged_without_host_devices` to be enabled")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user