From 5a2fd5c61287dd391a71c5c142446394756550d7 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 28 Jul 2014 12:13:30 -0400 Subject: [PATCH] Ignore powershell implementation files with ansible-doc as documentation lives in Python stubs. --- bin/ansible-doc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ansible-doc b/bin/ansible-doc index 9faff67507d..5154dbbfbc7 100755 --- a/bin/ansible-doc +++ b/bin/ansible-doc @@ -174,6 +174,8 @@ def get_module_list_text(module_list): if filename is None: continue + if filename.endswith(".ps1"): + continue if os.path.isdir(filename): continue @@ -186,7 +188,6 @@ def get_module_list_text(module_list): except: traceback.print_exc() sys.stderr.write("ERROR: module %s has a documentation error formatting or is missing documentation\n" % module) - pass return "\n".join(text) def main():