Fix junos terminal error regex (#50538)

*  Change junos terminal error regex to read error string
   correctly.
This commit is contained in:
Ganesh Nalawade 2019-01-04 17:38:07 +05:30 committed by GitHub
parent 97621852db
commit 555732f8bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ class TerminalModule(TerminalBase):
terminal_stderr_re = [ terminal_stderr_re = [
re.compile(br"unknown command"), re.compile(br"unknown command"),
re.compile(br"syntax error"), re.compile(br"syntax error"),
re.compile(br"error: commit failed") re.compile(br"[\r\n]error:")
] ]
def on_open_shell(self): def on_open_shell(self):