1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
amb1s1 2018-09-05 09:45:06 -04:00 committed by Deepak Agrawal
parent 0ad262e3ec
commit 25563dc7cf

View file

@ -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):