Skip to content

Commit e3d9a26

Browse files
fix split call to handle apis of the format a/b/c (#440)
Co-authored-by: dbasunag <[email protected]>
1 parent 1dd14e9 commit e3d9a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openshift/dynamic/discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def get_resources_for_api_version(self, prefix, group, version, preferred):
130130
resources_raw = list(filter(lambda resource: '/' not in resource['name'], resources_response))
131131
subresources_raw = list(filter(lambda resource: '/' in resource['name'], resources_response))
132132
for subresource in subresources_raw:
133-
resource, name = subresource['name'].split('/')
133+
resource, name = subresource['name'].split('/', 1)
134134
if not subresources.get(resource):
135135
subresources[resource] = {}
136136
subresources[resource][name] = subresource

0 commit comments

Comments
 (0)