Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
9116ff1c
Commit
9116ff1c
authored
Jun 16, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced removed pager_print for print
parent
98f5534d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/cli/__init__.py
+3
-3
No files found.
lib/ansible/cli/__init__.py
View file @
9116ff1c
...
...
@@ -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
():
p
ager_p
rint
(
text
)
print
(
text
)
elif
'PAGER'
in
os
.
environ
:
if
sys
.
platform
==
'win32'
:
p
ager_p
rint
(
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
:
p
ager_p
rint
(
text
)
print
(
text
)
@staticmethod
def
pager_pipe
(
text
,
cmd
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment