Resolving bug on CNOS Image download on multiple devices.

(cherry picked from commit 1921eaf096)
This commit is contained in:
Anil Kumar Muraleedharan 2017-09-15 12:39:48 +05:30 committed by Toshio Kuratomi
parent 6e77a3ac3a
commit b285dc1f4f

View file

@ -3159,10 +3159,13 @@ def waitForDeviceResponse(command, prompt, timeout, obj):
if(gotit != -1): if(gotit != -1):
flag = True flag = True
except: except:
if prompt != "(yes/no)?": # debugOutput(prompt)
retVal = retVal + "\n Error-101" if prompt == "(yes/no)?":
else:
retVal = retVal retVal = retVal
elif prompt == "Password:":
retVal = retVal
else:
retVal = retVal + "\n Error-101"
flag = True flag = True
return retVal return retVal
# EOM # EOM