mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Adding stderr regex catch for iosxr commit failures. Adding error handling after executing commit command. (#26462)
This commit is contained in:
parent
895e6c5d06
commit
e785cc53db
2 changed files with 5 additions and 1 deletions
|
@ -42,6 +42,7 @@ class TerminalModule(TerminalBase):
|
|||
re.compile(br"connection timed out", re.I),
|
||||
re.compile(br"[^\r\n]+ not found", re.I),
|
||||
re.compile(br"'[^']' +returned error code: ?\d+"),
|
||||
re.compile(br"Failed to commit", re.I)
|
||||
]
|
||||
|
||||
def on_open_shell(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue