Update lib/ansible/utils/collection_loader/_collection_finder.py

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
pull/84758/head
Jordan Borean 11 months ago
parent c761a71cea
commit ab9cfe9c61
No known key found for this signature in database
GPG Key ID: 2AAC89085FBBDAB5

@ -1245,10 +1245,10 @@ def _iter_modules_impl(paths, prefix=''):
if not os.path.isdir(path):
continue
yielded = set()
yielded = {'__init__'}
for basename in sorted(os.listdir(path)):
modname = inspect.getmodulename(basename)
if modname == '__init__' or modname in yielded:
if modname in yielded:
continue
mod_path = os.path.join(path, basename)

Loading…
Cancel
Save