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
commit f354bd1eab
6 changed files with 10 additions and 6 deletions

View file

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