From 9116ff1c2856da3c81f3d7c3878b0d98cb1e5964 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 16 Jun 2015 09:19:37 -0400 Subject: [PATCH] replaced removed pager_print for print --- 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 5be9268382..c6a4e75c47 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -415,16 +415,16 @@ class CLI(object): ''' find reasonable way to display text ''' # this is a much simpler form of what is in pydoc.py if not sys.stdout.isatty(): - pager_print(text) + print(text) elif 'PAGER' in os.environ: if sys.platform == 'win32': - pager_print(text) + print(text) else: CLI.pager_pipe(text, os.environ['PAGER']) elif subprocess.call('(less --version) 2> /dev/null', shell = True) == 0: CLI.pager_pipe(text, 'less') else: - pager_print(text) + print(text) @staticmethod def pager_pipe(text, cmd):