From 1a5732807f4b5e0aacd5fe077a3564f15aa8bdef Mon Sep 17 00:00:00 2001 From: Albert Siersema Date: Tue, 26 Mar 2019 13:40:45 +0100 Subject: [PATCH] Fixes #53277 (#53285) * Fixes 53277 * Still fixes #53277 , now with dressed up except (PEP8 E722) --- lib/ansible/plugins/terminal/ios.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/plugins/terminal/ios.py b/lib/ansible/plugins/terminal/ios.py index f91e61f5f3..2bb29fbaaf 100644 --- a/lib/ansible/plugins/terminal/ios.py +++ b/lib/ansible/plugins/terminal/ios.py @@ -61,6 +61,10 @@ class TerminalModule(TerminalBase): try: self._exec_cli_command(b'terminal width 512') + try: + self._exec_cli_command(b'terminal width 0') + except AnsibleConnectionFailure: + pass except AnsibleConnectionFailure: display.display('WARNING: Unable to set terminal width, command responses may be truncated')