Skip to content

Commit

Permalink
deps module util: fix overzealous name cropping (#6479)
Browse files Browse the repository at this point in the history
Fix overzealous name cropping.

(cherry picked from commit 57cfd1b)
  • Loading branch information
felixfontein authored and patchback[bot] committed May 4, 2023
1 parent 874d7f7 commit ff85630
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "deps module utils - do not fail when dependency cannot be found (https://github.com/ansible-collections/community.general/pull/6479)."
2 changes: 1 addition & 1 deletion plugins/module_utils/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _select_names(spec):
for d in spec_split:
dep_names.remove(d)
else:
spec_split = spec[1:].split(":")
spec_split = spec.split(":")
dep_names = []
for d in spec_split:
_deps[d] # ensure it exists
Expand Down

0 comments on commit ff85630

Please sign in to comment.