From 555732f8bb9d492b6382baa81478eb21d98c913a Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Fri, 4 Jan 2019 17:38:07 +0530 Subject: [PATCH] Fix junos terminal error regex (#50538) * Change junos terminal error regex to read error string correctly. --- lib/ansible/plugins/terminal/junos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/terminal/junos.py b/lib/ansible/plugins/terminal/junos.py index f614e298e97..735e8bdf37d 100644 --- a/lib/ansible/plugins/terminal/junos.py +++ b/lib/ansible/plugins/terminal/junos.py @@ -38,7 +38,7 @@ class TerminalModule(TerminalBase): terminal_stderr_re = [ re.compile(br"unknown command"), re.compile(br"syntax error"), - re.compile(br"error: commit failed") + re.compile(br"[\r\n]error:") ] def on_open_shell(self):