Make the 'not found' regex case sensitive (#27100)
Turns out in some commands, like 'sh bgp summary' a line containing 'Not found' can be shown as a column. This causes those commands to error out with RC=1 . Fixes #26577
This commit is contained in:
parent
f58a0cb2b9
commit
857726e6b1
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class TerminalModule(TerminalBase):
|
||||||
re.compile(br"invalid input", re.I),
|
re.compile(br"invalid input", re.I),
|
||||||
re.compile(br"(?:incomplete|ambiguous) command", re.I),
|
re.compile(br"(?:incomplete|ambiguous) command", re.I),
|
||||||
re.compile(br"connection timed out", re.I),
|
re.compile(br"connection timed out", re.I),
|
||||||
re.compile(br"[^\r\n]+ not found", re.I),
|
re.compile(br"[^\r\n]+ not found"),
|
||||||
re.compile(br"'[^']' +returned error code: ?\d+"),
|
re.compile(br"'[^']' +returned error code: ?\d+"),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue