mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-13 13:06:03 +00:00
request.go: correct subresource referencing
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com> Kubernetes-commit: 678e4ebaf6534e9b15fc4cc8602caadbead2e40e
This commit is contained in:
parent
fa31d62bd0
commit
bb1d67da92
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user