From 104c415543a218d3a7263e210bd2e6b7b63df915 Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Mon, 24 Dec 2018 01:02:21 +0530 Subject: [PATCH] Fix for AttributeError in network_cli (#50284) * Value of prompt_answer is wrongly used as `self.prompt_answer` while logging it in message queue --- lib/ansible/plugins/connection/network_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/connection/network_cli.py b/lib/ansible/plugins/connection/network_cli.py index 1fd2ca0df8..352edc51b8 100644 --- a/lib/ansible/plugins/connection/network_cli.py +++ b/lib/ansible/plugins/connection/network_cli.py @@ -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)