handle validation errors correctly
Kubernetes-commit: 51b75460aa356a6b07cd5d727cc3ad6c00a13f20
This commit is contained in:
parent
102c268ab7
commit
2bdde1d304
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue