mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Fix mandatory statement error for junos modules (#50074)
* Fix mandatory statement error for junos modules Fixes #40267 * Add error regex in junos terminal plugin to error out in case of commit fails * If commit fails add logic to discard changes before existing else next task will result in error * Add integration test * Minor update
This commit is contained in:
parent
97de7c133e
commit
cc8e90395a
3 changed files with 29 additions and 4 deletions
|
@ -37,7 +37,8 @@ class TerminalModule(TerminalBase):
|
|||
|
||||
terminal_stderr_re = [
|
||||
re.compile(br"unknown command"),
|
||||
re.compile(br"syntax error,")
|
||||
re.compile(br"syntax error"),
|
||||
re.compile(br"error: commit failed")
|
||||
]
|
||||
|
||||
def on_open_shell(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue