Fix aruba initial prompt issue (#39195)

Fixes #33414

Issue a newline when the initial connection
results in a prompt and expects user input.
This commit is contained in:
Ganesh Nalawade 2018-04-26 11:06:27 +05:30 committed by GitHub
parent 5439f141ee
commit 354454ad58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 1 deletions

View file

@ -312,7 +312,8 @@ class Connection(ConnectionBase):
else:
display.vvvv('unable to load cliconf for network_os %s' % network_os)
self.receive()
self.receive(prompts=self._terminal.terminal_initial_prompt, answer=self._terminal.terminal_initial_answer,
newline=self._terminal.terminal_inital_prompt_newline)
display.vvvv('firing event: on_open_shell()', host=self._play_context.remote_addr)
self._terminal.on_open_shell()