Fix for AttributeError in network_cli (#50284)

*  Value of prompt_answer is wrongly used as `self.prompt_answer`
   while logging it in message queue
This commit is contained in:
Ganesh Nalawade 2018-12-24 01:02:21 +05:30 committed by GitHub
parent 7ec82cdfc9
commit 104c415543
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)