Quick ansible-doc fix -- don't run pager if there was an error (no text)

(cherry picked from commit 2be2f35373)
This commit is contained in:
Brian J. Dowling 2016-10-13 14:35:45 -04:00 committed by Brian Coca
parent cb8c28870c
commit ed9d0cdf4a

View file

@ -136,6 +136,7 @@ class DocCLI(CLI):
display.vvv(traceback.print_exc())
raise AnsibleError("module %s missing documentation (or could not parse documentation): %s\n" % (module, str(e)))
if text:
self.pager(text)
return 0