From 25563dc7cf2566ead3a737879649f9f716d9ae19 Mon Sep 17 00:00:00 2001 From: amb1s1 Date: Wed, 5 Sep 2018 09:45:06 -0400 Subject: [PATCH] Fixed an issue when expecting may be, but getting maybe (#44908) Tested an install on a Nexus 5596 and was failing due that this model will send an output of "Another install procedure maybe in progress" when running the show install all while the install is running. This is how the module knows that an install is being processed. In my case, it will not match that conditional statement. --- 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 a072345bebc..22ecb8b0757 100644 --- a/lib/ansible/modules/network/nxos/nxos_install_os.py +++ b/lib/ansible/modules/network/nxos/nxos_install_os.py @@ -235,7 +235,7 @@ def parse_show_install(data): break # Check for potentially transient conditions - if re.search(r'Another install procedure may be in progress', x): + if re.search(r'Another install procedure may\s*be in progress', x): ud['install_in_progress'] = True break if re.search(r'Backend processing error', x):