From now on --dbms-cred can be used also in combination with -d (more flexibility as spotted that one user used in that way on ML)

This commit is contained in:
stamparm
2013-04-17 11:12:15 +02:00
parent feed2274c3
commit 2defc30dc6
2 changed files with 10 additions and 2 deletions

View File

@@ -1058,8 +1058,11 @@ def parseTargetDirect():
conf.dbmsUser = details.group('user')
conf.dbmsPass = details.group('pass')
else:
conf.dbmsUser = unicode()
conf.dbmsPass = unicode()
if conf.dbmsCred:
conf.dbmsUser, conf.dbmsPass = conf.dbmsCred.split(':')
else:
conf.dbmsUser = unicode()
conf.dbmsPass = unicode()
if not conf.dbmsPass:
conf.dbmsPass = None