Skip to content

Commit

Permalink
Merge pull request containerd#6855 from dmcgowan/fix-undefined-error
Browse files Browse the repository at this point in the history
Fix undefined error in use of errors package
  • Loading branch information
kzys authored Apr 25, 2022
2 parents 3dbd6a2 + 0e6c7bf commit d91c4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cri/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
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")
}
}

Expand Down

0 comments on commit d91c4f2

Please sign in to comment.