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:
parent
cb8c28870c
commit
ed9d0cdf4a
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,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):
|
||||||
|
|
Loading…
Reference in a new issue