From c7217a8f1bc43722fece2631d055bef24dbc98d3 Mon Sep 17 00:00:00 2001 From: Stoned Elipot Date: Wed, 16 Oct 2013 21:58:54 +0200 Subject: [PATCH] Fix 'ansible-doc -l' runtime error following commit 4430d0f skip "module" not found as plugin, id est directory --- bin/ansible-doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-doc b/bin/ansible-doc index c6dfc8f6bc9..8c78670616a 100755 --- a/bin/ansible-doc +++ b/bin/ansible-doc @@ -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)