Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgckind committed May 23, 2017
1 parent 0fe8749 commit 9b7a07a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easyaccess/easyaccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -2577,13 +2577,16 @@ def __init__(self, section='', user=None, passwd=None, quiet=False, refresh=Fals
db = conf.get('easyaccess', 'database')
else:
db = section
desconf = config_mod.get_desconfig(desfile, db)
if user is not None:
print('Bypassing .desservices file with user : %s' % user)
if passwd is None:
passwd = getpass.getpass(prompt='Enter password : ')
desconf = config_mod.get_desconfig(desfile, db,
verbose=False, user=user, pw1=passwd)
desconf.set('db-' + db, 'user', user)
desconf.set('db-' + db, 'passwd', passwd)
else:
desconf = config_mod.get_desconfig(desfile, db)
easy_or.__init__(self, conf, desconf, db, interactive=False, quiet=quiet, pymod=True)
try:
self.cur.execute('create table FGOTTENMETADATA (ID int)')
Expand Down

0 comments on commit 9b7a07a

Please sign in to comment.