Set terminal width for network *_command modules to avoid paging (#23728)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2017-04-25 14:10:39 +05:30 committed by GitHub
parent 47edac6ebd
commit f354bd1eab
6 changed files with 10 additions and 6 deletions

View file

@ -49,7 +49,7 @@ class TerminalModule(TerminalBase):
if prompt.strip().endswith('%'):
display.vvv('starting cli', self._connection._play_context.remote_addr)
self._exec_cli_command('cli')
for c in ['set cli timestamp disable', 'set cli screen-length 0']:
for c in ['set cli timestamp disable', 'set cli screen-length 0', 'set cli screen-width 1024']:
self._exec_cli_command(c)
except AnsibleConnectionFailure:
raise AnsibleConnectionFailure('unable to set terminal parameters')