mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed less opts issue
This commit is contained in:
parent
8fdf9ae59b
commit
12a800c0e7
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ class CLI(object):
|
||||||
def pager_pipe(text, cmd):
|
def pager_pipe(text, cmd):
|
||||||
''' pipe text through a pager '''
|
''' pipe text through a pager '''
|
||||||
if 'LESS' not in os.environ:
|
if 'LESS' not in os.environ:
|
||||||
os.environ['LESS'] = LESS_OPTS
|
os.environ['LESS'] = self.LESS_OPTS
|
||||||
try:
|
try:
|
||||||
cmd = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=sys.stdout)
|
cmd = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=sys.stdout)
|
||||||
cmd.communicate(input=text)
|
cmd.communicate(input=text)
|
||||||
|
|
Loading…
Reference in a new issue