From df2fcecd6274f3c25bf875393f8d2b3db8a10065 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 15 Jun 2017 10:45:01 -0400 Subject: [PATCH] pager should not log fixes #25719 --- lib/ansible/cli/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index 610ea94ec03..a5488e825e3 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -611,10 +611,10 @@ class CLI(with_metaclass(ABCMeta, object)): ''' find reasonable way to display text ''' # this is a much simpler form of what is in pydoc.py if not sys.stdout.isatty(): - display.display(text) + display.display(text, screen_only=True) elif 'PAGER' in os.environ: if sys.platform == 'win32': - display.display(text) + display.display(text, screen_only=True) else: self.pager_pipe(text, os.environ['PAGER']) else: @@ -623,7 +623,7 @@ class CLI(with_metaclass(ABCMeta, object)): if p.returncode == 0: self.pager_pipe(text, 'less') else: - display.display(text) + display.display(text, screen_only=True) @staticmethod def pager_pipe(text, cmd):