Fix for AttributeError in network_cli (#50284)

*  Value of prompt_answer is wrongly used as `self.prompt_answer`
   while logging it in message queue
pull/50312/head
Ganesh Nalawade 6 years ago committed by GitHub
parent 7ec82cdfc9
commit 104c415543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -522,7 +522,7 @@ class Connection(NetworkConnectionBase):
if newline:
self._ssh_shell.sendall(b'\r')
prompt_answer += '\r'
self._log_messages("matched command prompt answer: %s" % self.prompt_answer)
self._log_messages("matched command prompt answer: %s" % prompt_answer)
if check_all and prompts and not single_prompt:
prompts.pop(0)
answer.pop(0)

Loading…
Cancel
Save