summaryrefslogtreecommitdiff
path: root/bin/ansible-doc
diff options
context:
space:
mode:
authorStoned Elipot <stoned.elipot@gmail.com>2013-10-16 21:58:54 +0200
committerStoned Elipot <stoned.elipot@gmail.com>2013-10-16 21:58:54 +0200
commitc7217a8f1bc43722fece2631d055bef24dbc98d3 (patch)
tree05e4b6efd53c5c150f30066d95a72bb57daa6d4d /bin/ansible-doc
parentf9ac88c9da98a5361d987706753d3b6fbf5a6406 (diff)
downloadansible-c7217a8f1bc43722fece2631d055bef24dbc98d3.tar.gz
Fix 'ansible-doc -l' runtime error following commit 4430d0f
skip "module" not found as plugin, id est directory
Diffstat (limited to 'bin/ansible-doc')
-rwxr-xr-xbin/ansible-doc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ansible-doc b/bin/ansible-doc
index c6dfc8f6bc..8c78670616 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)