From 4c6331daa6f5efd93087aaa500422c6c3f996003 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 15 Dec 2014 09:30:54 +0100 Subject: [PATCH] Patch for an Issue #1028 --- lib/core/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index e4be4dd3d..03261478f 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -895,7 +895,7 @@ def readInput(message, default=None, checkBatch=True): elif message[-1] == ']': message += " " - if kb.prependFlag: + if kb.get("prependFlag"): message = "\n%s" % message kb.prependFlag = False @@ -1819,7 +1819,7 @@ def getSQLSnippet(dbms, sfile, **variables): if choice and choice[0].lower() == "y": for var in variables: msg = "insert value for variable '%s': " % var - val = readInput(msg) + val = readInput(msg, default="") retVal = retVal.replace(r"%%%s%%" % var, val) return retVal