diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index 00c29524e7..ff8bf75490 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -476,7 +476,7 @@ class CLI(object): display.display(text) else: self.pager_pipe(text, os.environ['PAGER']) - elif subprocess.call('(less --version) 2> /dev/null', shell = True) == 0: + elif subprocess.call('(less --version) &> /dev/null', shell = True) == 0: self.pager_pipe(text, 'less') else: display.display(text)