Skip to content

Commit

Permalink
Merge pull request openshift#2485 from QiWang19/fix-validation
Browse files Browse the repository at this point in the history
Bug 1930636: fix error print verb
  • Loading branch information
openshift-merge-robot authored Mar 24, 2021
2 parents d6dabad + 1f3ad30 commit 046a870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/container-runtime-config/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func validateUserContainerRuntimeConfig(cfg *mcfgv1.ContainerRuntimeConfig) erro

ctrcfg := cfg.Spec.ContainerRuntimeConfig
if ctrcfg.PidsLimit != nil && *ctrcfg.PidsLimit != 0 && *ctrcfg.PidsLimit < minPidsLimit {
return fmt.Errorf("invalid PidsLimit %q", *ctrcfg.PidsLimit)
return fmt.Errorf("invalid PidsLimit %v", *ctrcfg.PidsLimit)
}

if ctrcfg.LogSizeMax.Value() > 0 && ctrcfg.LogSizeMax.Value() <= minLogSize {
Expand Down

0 comments on commit 046a870

Please sign in to comment.