Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed sros prompt starting with asterisk #1

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/changelog/undistributed.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Features and Bug Fixes:
^^^^^^^^^^^^^^^^^^^^^^^

- sros plugin

- Updated prompt pattern to expect prompts starting with ``*``.
2 changes: 1 addition & 1 deletion src/unicon/plugins/sros/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ def __init__(self):
self.continue_connect = r'Are you sure you want to continue connecting \(yes/no\)'
self.permission_denied = r'^Permission denied, please try again\.\s?$'
self.mdcli_prompt = r'^(.*)\[.*\][\r\n]+A:.*@%N#\s?$'
self.classiccli_prompt = r'^A:%N(>.*)?#\s?$'
self.classiccli_prompt = r'^\*?A:%N(>.*)?#\s?$'
self.discard_uncommitted = 'Discard uncommitted changes\? \[y,n\]'