From 07212c395bac5f623dfa660308ee6f6fb7b9de2c Mon Sep 17 00:00:00 2001 From: Mike Wiebe Date: Wed, 20 Mar 2019 03:32:11 -0400 Subject: [PATCH] Fix regular expression for timeout (#53994) --- lib/ansible/modules/network/nxos/nxos_install_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/nxos/nxos_install_os.py b/lib/ansible/modules/network/nxos/nxos_install_os.py index b0e653bed0..ac43ba1d24 100644 --- a/lib/ansible/modules/network/nxos/nxos_install_os.py +++ b/lib/ansible/modules/network/nxos/nxos_install_os.py @@ -267,7 +267,7 @@ def parse_show_install(data): # We get these messages when the upgrade is non-disruptive and # we loose connection with the switchover but far enough along that # we can be confident the upgrade succeeded. - if re.search(r'timeout trying to send command: install', x): + if re.search(r'timeout .*trying to send command: install', x): ud['upgrade_succeeded'] = True ud['use_impact_data'] = True break