From a365e77cc350ff5ce2dfaf421d7a3f54152cf187 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Thu, 5 Sep 2019 14:48:16 -0400 Subject: [PATCH] Connect before reading the prompt? (#61797) --- lib/ansible/plugins/connection/network_cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/plugins/connection/network_cli.py b/lib/ansible/plugins/connection/network_cli.py index 3e2e796d976..6611d91be51 100644 --- a/lib/ansible/plugins/connection/network_cli.py +++ b/lib/ansible/plugins/connection/network_cli.py @@ -346,6 +346,7 @@ class Connection(NetworkConnectionBase): name += "paramiko [%s]" % self._play_context.remote_addr return name + @ensure_connect def get_prompt(self): """Returns the current prompt from the device""" return self._matched_prompt