1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix 'ansible-doc -l' runtime error following commit 4430d0f

skip "module" not found as plugin, id est directory
This commit is contained in:
Stoned Elipot 2013-10-16 21:58:54 +02:00
parent f9ac88c9da
commit c7217a8f1b

View file

@ -161,7 +161,7 @@ def main():
continue
filename = utils.plugins.module_finder.find_plugin(module)
if os.path.isdir(filename):
if filename is None:
continue
try:
doc, plainexamples = module_docs.get_docstring(filename)