summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/terminal
diff options
context:
space:
mode:
authorDhivyap <dhivya.p@dell.com>2019-10-22 14:06:34 +0530
committerGanesh Nalawade <ganesh634@gmail.com>2019-10-22 14:06:34 +0530
commit2e65c1ebb7ab66d028efb30c20d1662150466de1 (patch)
tree1588daf6175ebd19ede35bf016e94f1be12804cd /lib/ansible/plugins/terminal
parent4745d4571163d6f25664afb60f47bd8ea0f3e4c4 (diff)
downloadansible-2e65c1ebb7ab66d028efb30c20d1662150466de1.tar.gz
Bug fixes- Dellos modules (#63272)
Diffstat (limited to 'lib/ansible/plugins/terminal')
-rw-r--r--lib/ansible/plugins/terminal/dellos6.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ansible/plugins/terminal/dellos6.py b/lib/ansible/plugins/terminal/dellos6.py
index 842b0c936f..5cbd8f3642 100644
--- a/lib/ansible/plugins/terminal/dellos6.py
+++ b/lib/ansible/plugins/terminal/dellos6.py
@@ -55,6 +55,12 @@ class TerminalModule(TerminalBase):
terminal_inital_prompt_newline = False
+ def on_open_shell(self):
+ try:
+ self._exec_cli_command(b'terminal length 0')
+ except AnsibleConnectionFailure:
+ raise AnsibleConnectionFailure('unable to set terminal parameters')
+
def on_become(self, passwd=None):
if self._get_prompt().endswith(b'#'):
return