From 1f410cc19f37c762ea20caa0c43fafe0e556189a Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Wed, 1 Aug 2018 20:30:39 +0530 Subject: [PATCH] Fail module if configure replace fails nxos (#43546) Signed-off-by: Trishna Guha --- lib/ansible/plugins/terminal/nxos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/terminal/nxos.py b/lib/ansible/plugins/terminal/nxos.py index 1972342f1f..efc9842cf6 100644 --- a/lib/ansible/plugins/terminal/nxos.py +++ b/lib/ansible/plugins/terminal/nxos.py @@ -48,7 +48,8 @@ class TerminalModule(TerminalBase): re.compile(br"unknown command"), re.compile(br"user not present"), re.compile(br"invalid (.+?)at '\^' marker", re.I), - re.compile(br"baud rate of console should be (\d*) to increase severity level", re.I) + re.compile(br"baud rate of console should be (\d*) to increase severity level", re.I), + re.compile(br"Configure replace failed", re.I), ] def on_become(self, passwd=None):