Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4f9e66

Browse files
committed
Patch related to the #1403
1 parent c05c0ff commit c4f9e66

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

lib/core/common.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -909,14 +909,15 @@ def readInput(message, default=None, checkBatch=True):
909909
answer = item.split('=')[1] if len(item.split('=')) > 1 else None
910910
if answer and question.lower() in message.lower():
911911
retVal = getUnicode(answer, UNICODE_ENCODING)
912+
elif answer is None and retVal:
913+
retVal = "%s,%s" % (retVal, getUnicode(item, UNICODE_ENCODING))
912914

913-
infoMsg = "%s%s" % (message, retVal)
914-
logger.info(infoMsg)
915-
916-
debugMsg = "used the given answer"
917-
logger.debug(debugMsg)
915+
if retVal:
916+
infoMsg = "%s%s" % (message, retVal)
917+
logger.info(infoMsg)
918918

919-
break
919+
debugMsg = "used the given answer"
920+
logger.debug(debugMsg)
920921

921922
if retVal is None:
922923
if checkBatch and conf.get("batch"):

0 commit comments

Comments
 (0)