mirror of
https://github.com/ansible/ansible.git
synced 2026-05-28 04:32:20 -04:00
Update lib/ansible/utils/collection_loader/_collection_finder.py
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
This commit is contained in:
parent
c761a71cea
commit
ab9cfe9c61
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue