From 03cdcc7d5839eda43942ea9de1cd4828992ee516 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Thu, 6 Sep 2018 16:15:01 +0530 Subject: [PATCH] fix python26 nxos terminal plugin bug (#45271) Signed-off-by: Trishna Guha (cherry picked from commit c98494d5bf94df78cc8ec41c679b3229688809fc) --- lib/ansible/plugins/terminal/nxos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/terminal/nxos.py b/lib/ansible/plugins/terminal/nxos.py index a4e835ce738..d6d183c44e3 100644 --- a/lib/ansible/plugins/terminal/nxos.py +++ b/lib/ansible/plugins/terminal/nxos.py @@ -30,7 +30,7 @@ from ansible.module_utils._text import to_bytes, to_text class TerminalModule(TerminalBase): terminal_stdout_re = [ - re.compile(br'[\r\n](?!\s*<)?(\x1b\S+)*[a-zA-Z_0-9]{1}[a-zA-Z0-9-_.]*[>|#](?:\s*)*(\x1b\S+)*$'), + re.compile(br'[\r\n](?!\s*<)?(\x1b\S+)*[a-zA-Z_0-9]{1}[a-zA-Z0-9-_.]*[>|#](?:\s*)(\x1b\S+)*$'), re.compile(br'[\r\n]?[a-zA-Z0-9]{1}[a-zA-Z0-9-_.]*\(.+\)#(?:\s*)$') ]