From 905d71d46a1028337b87c0b61115017688463976 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Mon, 23 Oct 2017 17:27:58 -0400 Subject: [PATCH] fix eos terminal plugin to recognize ospf error message (#32039) The eos terminal plugin did not correctly catch the error message returned with trying to configure more than one ospf instance. This change updates the terminal plugin to catch that scenario --- lib/ansible/plugins/terminal/eos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/terminal/eos.py b/lib/ansible/plugins/terminal/eos.py index 951293e584..40fc01038e 100644 --- a/lib/ansible/plugins/terminal/eos.py +++ b/lib/ansible/plugins/terminal/eos.py @@ -44,7 +44,8 @@ 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"[^\r\n]\/bin\/(?:ba)?sh") + re.compile(br"[^\r\n]\/bin\/(?:ba)?sh"), + re.compile(br"% More than \d+ OSPF instance", re.I) ] def on_open_shell(self):