mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Quick ansible-doc fix -- don't run pager if there was an error (no text)
This commit is contained in:
committed by
Brian Coca
parent
4916fe9962
commit
2be2f35373
@@ -137,7 +137,8 @@ class DocCLI(CLI):
|
|||||||
display.vvv(traceback.print_exc())
|
display.vvv(traceback.print_exc())
|
||||||
raise AnsibleError("module %s missing documentation (or could not parse documentation): %s\n" % (module, str(e)))
|
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
|
return 0
|
||||||
|
|
||||||
def find_modules(self, path):
|
def find_modules(self, path):
|
||||||
|
|||||||
Reference in New Issue
Block a user