Skip to content

Commit

Permalink
fix(Collection's util resource discovery fails when complex subresour…
Browse files Browse the repository at this point in the history
…ces present ansible-collections#659)
  • Loading branch information
Bastien Bosser authored and abikouo committed Feb 28, 2024
1 parent 7c4ec3b commit 5df4194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/client/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_resources_for_api_version(self, prefix, group, version, preferred):
filter(lambda resource: "/" in resource["name"], resources_response)
)
for subresource in subresources_raw:
resource, name = subresource["name"].split("/")
resource, name = subresource["name"].split("/", 1)
subresources[resource][name] = subresource

for resource in resources_raw:
Expand Down

0 comments on commit 5df4194

Please sign in to comment.