Merge pull request #99193 from zhijianli88/subresource

request.go: correct subresource referencing
This commit is contained in:
Kubernetes Prow Robot
2021-02-18 17:52:36 -08:00
committed by GitHub

View File

@@ -242,7 +242,7 @@ func (r *Request) SubResource(subresources ...string) *Request {
}
subresource := path.Join(subresources...)
if len(r.subresource) != 0 {
r.err = fmt.Errorf("subresource already set to %q, cannot change to %q", r.resource, subresource)
r.err = fmt.Errorf("subresource already set to %q, cannot change to %q", r.subresource, subresource)
return r
}
for _, s := range subresources {