Merge pull request #6855 from dmcgowan/fix-undefined-error

Fix undefined error in use of errors package
This commit is contained in:
Kazuyoshi Kato 2022-04-25 16:12:37 -07:00 committed by GitHub
commit d91c4f214e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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