mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #6479/57cfd1b4 backport][stable-6] deps module util: fix overzealous name cropping (#6489)
deps module util: fix overzealous name cropping (#6479)
Fix overzealous name cropping.
(cherry picked from commit 57cfd1b46d
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
874d7f7050
commit
bf90b4e88a
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/deps.yml
Normal file
2
changelogs/fragments/deps.yml
Normal file
|
@ -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)."
|
|
@ -80,7 +80,7 @@ def _select_names(spec):
|
||||||
for d in spec_split:
|
for d in spec_split:
|
||||||
dep_names.remove(d)
|
dep_names.remove(d)
|
||||||
else:
|
else:
|
||||||
spec_split = spec[1:].split(":")
|
spec_split = spec.split(":")
|
||||||
dep_names = []
|
dep_names = []
|
||||||
for d in spec_split:
|
for d in spec_split:
|
||||||
_deps[d] # ensure it exists
|
_deps[d] # ensure it exists
|
||||||
|
|
Loading…
Reference in a new issue