Skip to content

Commit

Permalink
Merge pull request #2095 from dbasunag/master
Browse files Browse the repository at this point in the history
fix split call to handle apis of the format a/b/c
  • Loading branch information
k8s-ci-robot authored Jul 31, 2023
2 parents a12df3e + 6875510 commit 76ec6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/base/dynamic/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_resources_for_api_version(self, prefix, group, version, preferred):
resources_raw = list(filter(lambda resource: '/' not in resource['name'], resources_response))
subresources_raw = list(filter(lambda resource: '/' in resource['name'], resources_response))
for subresource in subresources_raw:
resource, name = subresource['name'].split('/')
resource, name = subresource['name'].split('/', 1)
if not subresources.get(resource):
subresources[resource] = {}
subresources[resource][name] = subresource
Expand Down

0 comments on commit 76ec6f5

Please sign in to comment.