handle validation errors correctly

Kubernetes-commit: 51b75460aa356a6b07cd5d727cc3ad6c00a13f20
This commit is contained in:
jennybuckley 2019-03-06 15:57:18 -08:00 committed by Kubernetes Publisher
parent 102c268ab7
commit 2bdde1d304
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ func cleanVerb(verb string, request *http.Request) string {
} }
func cleanDryRun(dryRun []string) string { func cleanDryRun(dryRun []string) string {
if err := validation.ValidateDryRun(nil, dryRun); err != nil { if errs := validation.ValidateDryRun(nil, dryRun); len(errs) > 0 {
return "invalid" return "invalid"
} }