From c3c54302af68bffd727dc409ec9fe6c44688685e Mon Sep 17 00:00:00 2001 From: Misha Komarovskiy Date: Thu, 12 Sep 2019 18:12:44 +0300 Subject: [PATCH] Don't fail if exos can't configure cli columns (#51364) * Don't fail if exos can't configure cli columns Signed-off-by: Misha Komarovskiy --- lib/ansible/plugins/terminal/exos.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/terminal/exos.py b/lib/ansible/plugins/terminal/exos.py index 3d52248785c..6836cdb8f49 100644 --- a/lib/ansible/plugins/terminal/exos.py +++ b/lib/ansible/plugins/terminal/exos.py @@ -49,7 +49,11 @@ class TerminalModule(TerminalBase): def on_open_shell(self): try: - for cmd in (b'disable clipaging', b'configure cli columns 256'): - self._exec_cli_command(cmd) + self._exec_cli_command(b'disable clipaging') except AnsibleConnectionFailure: raise AnsibleConnectionFailure('unable to set terminal parameters') + + try: + self._exec_cli_command(b'configure cli columns 256') + except AnsibleConnectionFailure: + self._connection.queue_message('warning', 'Unable to configure cli columns, command responses may be truncated')