Skip to content

Commit 0d72fe2

Browse files
committed
fix: revert last junos driver change
1 parent a8c39fb commit 0d72fe2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Exscript/protocols/drivers/junos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
_prefix = r'(?:[\r\n]+' + _re_re + r'?' + _edit + r'?)'
5858
_prompt = r'[\r\n]+[\w\-\.]+@[\-\w+\.:]+[%>#] $'
5959
_prompt_re = [re.compile(_prefix + r'?' + _prompt)]
60-
_error_re = [re.compile(r'[\r\n](unknown|invalid|error|syntax error)', re.I)]
60+
_error_re = [re.compile(r'^(unknown|invalid|error|syntax error)', re.I)]
6161
_junos_re = re.compile(r'\bjunos\b', re.I)
6262

6363

0 commit comments

Comments
 (0)