Connect before reading the prompt? (#61797)

pull/61887/head
Nathaniel Case 5 years ago committed by GitHub
parent 394a05108d
commit a365e77cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -346,6 +346,7 @@ class Connection(NetworkConnectionBase):
name += "paramiko [%s]" % self._play_context.remote_addr name += "paramiko [%s]" % self._play_context.remote_addr
return name return name
@ensure_connect
def get_prompt(self): def get_prompt(self):
"""Returns the current prompt from the device""" """Returns the current prompt from the device"""
return self._matched_prompt return self._matched_prompt

Loading…
Cancel
Save