From eaf01d321f8150af564c6135972c280336dc6eee Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Wed, 12 Sep 2018 09:55:23 -0400 Subject: [PATCH] eos: Don't error on VLAN missing warning (#45433) --- 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 14cd3674923..8a81a46119a 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),