added in method to handle new and old login methods (#47170)

pull/47533/head
Matthew DeNapoli 7 years ago committed by Nathaniel Case
parent 079705f8da
commit dc81a3b856

@ -52,5 +52,8 @@ class TerminalModule(TerminalBase):
'{"command": "config paging disable"}')
for cmd in commands:
self._exec_cli_command(cmd)
except AnsibleConnectionFailure:
try:
self._exec_cli_command(b'config paging disable')
except AnsibleConnectionFailure:
raise AnsibleConnectionFailure('unable to set terminal parameters')

Loading…
Cancel
Save