From a8f56197861e0a914633fb7aaa4dad7c86cc0342 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) (cherry picked from commit 07212c395bac5f623dfa660308ee6f6fb7b9de2c) --- 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 0aefd871d1d..e7aab140a8c 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