From 186f4effd3d5ffb9877c740faa436082a52f8459 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Wed, 12 Sep 2018 09:55:23 -0400 Subject: [PATCH] [2.7] eos: Don't error on VLAN missing warning (#45433) (cherry picked from commit eaf01d3) Co-authored-by: Nathaniel Case --- 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 14cd367492..8a81a46119 100644 --- a/lib/ansible/plugins/terminal/eos.py +++ b/lib/ansible/plugins/terminal/eos.py @@ -42,7 +42,8 @@ class TerminalModule(TerminalBase): re.compile(br"invalid input", re.I), re.compile(br"(?:incomplete|ambiguous) command", re.I), re.compile(br"connection timed out", re.I), - re.compile(br"[^\r\n]+ not found", re.I), + # Strings like this regarding VLANs are not errors + re.compile(br"[^\r\n]+ not found(?! in current VLAN)", re.I), re.compile(br"'[^']' +returned error code: ?\d+"), re.compile(br"[^\r\n]\/bin\/(?:ba)?sh"), re.compile(br"% More than \d+ OSPF instance", re.I),