Skip to content

Commit b3fff46

Browse files
Merge pull request #114415 from hoskeri/automated-cherry-pick-of-#114404-upstream-release-1.26
Automated cherry pick of #114404: Check the correct error in d.downloadAPIs Kubernetes-commit: dd0b0c00e5a10352fa74a09fb32aca509c7f0c48
2 parents 236db3c + a2ef324 commit b3fff46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discovery/discovery_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (d *DiscoveryClient) GroupsAndMaybeResources() (*metav1.APIGroupList, map[s
196196
}
197197
// Discovery groups and (possibly) resources downloaded from /apis.
198198
apiGroups, apiResources, aerr := d.downloadAPIs()
199-
if err != nil {
199+
if aerr != nil {
200200
return nil, nil, aerr
201201
}
202202
// Merge apis groups into the legacy groups.

0 commit comments

Comments
 (0)