mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
handle validation errors correctly
This commit is contained in:
parent
4ac0116a5d
commit
51b75460aa
@ -330,7 +330,7 @@ func cleanVerb(verb string, request *http.Request) 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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user