diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index 9d5a6afcbd5..a49dba04ab2 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -137,7 +137,8 @@ class DocCLI(CLI): display.vvv(traceback.print_exc()) raise AnsibleError("module %s missing documentation (or could not parse documentation): %s\n" % (module, str(e))) - self.pager(text) + if text: + self.pager(text) return 0 def find_modules(self, path):