Fix 'ansible-doc -l' runtime error following commit 4430d0f
skip "module" not found as plugin, id est directorypull/4420/head
parent
f9ac88c9da
commit
c7217a8f1b
|
@ -161,7 +161,7 @@ def main():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
filename = utils.plugins.module_finder.find_plugin(module)
|
filename = utils.plugins.module_finder.find_plugin(module)
|
||||||
if os.path.isdir(filename):
|
if filename is None:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
doc, plainexamples = module_docs.get_docstring(filename)
|
doc, plainexamples = module_docs.get_docstring(filename)
|
||||||
|
|
Loading…
Reference in New Issue