Connect before reading the prompt? ()

This commit is contained in:
Nathaniel Case 2019-09-05 14:48:16 -04:00 committed by GitHub
parent 394a05108d
commit a365e77cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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