mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Adds various fixes for f5 modules (#40208)
* Adds stty expansion for cli commands * minor fixes * Make bigiq rest client work correctly
This commit is contained in:
parent
548282139f
commit
5e7878a6a1
5 changed files with 13 additions and 7 deletions
|
@ -51,10 +51,12 @@ class TerminalModule(TerminalBase):
|
|||
def on_open_shell(self):
|
||||
try:
|
||||
self._exec_cli_command(b'modify cli preference display-threshold 0 pager disabled')
|
||||
self._exec_cli_command(b'run /util bash -c "stty cols 1000000" 2> /dev/null')
|
||||
except AnsibleConnectionFailure as ex:
|
||||
output = str(ex)
|
||||
if 'modify: command not found' in output:
|
||||
try:
|
||||
self._exec_cli_command(b'tmsh modify cli preference display-threshold 0 pager disabled')
|
||||
self._exec_cli_command(b'stty cols 1000000 2> /dev/null')
|
||||
except AnsibleConnectionFailure as ex:
|
||||
raise AnsibleConnectionFailure('unable to set terminal parameters')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue