Skip to content

Commit

Permalink
Connect before reading the prompt?
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos committed Sep 4, 2019
1 parent 036f173 commit f3edbda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ansible/plugins/connection/network_cli.py
Expand Up @@ -346,6 +346,7 @@ def _get_log_channel(self):
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
Expand Down

0 comments on commit f3edbda

Please sign in to comment.