Commit 8a3f222d by Michael DeHaan

Merge pull request #4548 from stoned/ansible-doc-fix

Fix 'ansible-doc -l' runtime error following commit 4430d0f5
parents f9ac88c9 c7217a8f
...@@ -161,7 +161,7 @@ def main(): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment