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

@ -45,7 +45,7 @@ class TerminalModule(TerminalBase):
def on_open_shell(self):
try:
for cmd in ['terminal length 0', 'terminal exec prompt no-timestamp']:
for cmd in ['terminal length 0', 'terminal width 512', 'terminal exec prompt no-timestamp']:
self._exec_cli_command(cmd)
except AnsibleConnectionFailure:
raise AnsibleConnectionFailure('unable to set terminal parameters')