diff --git a/lib/ansible/plugins/terminal/dellos6.py b/lib/ansible/plugins/terminal/dellos6.py index 3d468b0e38..59f90bc56c 100644 --- a/lib/ansible/plugins/terminal/dellos6.py +++ b/lib/ansible/plugins/terminal/dellos6.py @@ -50,6 +50,12 @@ class TerminalModule(TerminalBase): ] + terminal_initial_prompt = br"\(y/n\)" + + terminal_initial_answer = b"y" + + terminal_inital_prompt_newline = False + def on_become(self, passwd=None): if self._get_prompt().endswith('#'): return diff --git a/lib/ansible/plugins/terminal/dellos9.py b/lib/ansible/plugins/terminal/dellos9.py index 8446f1aac8..ceb20f85b2 100644 --- a/lib/ansible/plugins/terminal/dellos9.py +++ b/lib/ansible/plugins/terminal/dellos9.py @@ -45,6 +45,10 @@ class TerminalModule(TerminalBase): re.compile(br"'[^']' +returned error code: ?\d+"), ] + terminal_initial_prompt = br"\[y/n\]:" + + terminal_initial_answer = b"y" + def on_open_shell(self): try: self._exec_cli_command(b'terminal length 0')