From 4d46f997a71ec247833c18b4df4fed7bb963d27f Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 29 Apr 2010 13:34:03 +0000 Subject: [PATCH] Minor bug fix --- lib/core/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index e0e14a314..d6d4e6678 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -616,7 +616,7 @@ def parseTargetDirect(): remote = False for dbms in SUPPORTED_DBMS: - details = re.search("^(?P%s)://(?P(?P.+?)\:(?P.+?)\@)?(?P(?P.+?)\:(?P[\d]+)\/)?(?P[\w\d\.\_\-\/]+?)$" % dbms, conf.direct, re.I) + details = re.search("^(?P%s)://(?P(?P.+?)\:(?P.*?)\@)?(?P(?P.+?)\:(?P[\d]+)\/)?(?P[\w\d\.\_\-\/]+?)$" % dbms, conf.direct, re.I) if details: conf.dbms = details.group('dbms') @@ -628,6 +628,9 @@ def parseTargetDirect(): conf.dbmsUser = str() conf.dbmsPass = str() + if not conf.dbmsPass: + conf.dbmsPass = None + if details.group('remote'): remote = True conf.hostname = details.group('hostname')