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

pull/18013/head
Brian J. Dowling 8 years ago committed by Brian Coca
parent 4916fe9962
commit 2be2f35373

@ -137,6 +137,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

Loading…
Cancel
Save