server/serverctl.py
changeset 3647 2941f4a0aab9
parent 3589 a5432f99f2d9
child 3890 d7a270f50f54
equal deleted inserted replaced
3646:3bba270202ef 3647:2941f4a0aab9
   104         pwd = config.sources()['admin']['password']
   104         pwd = config.sources()['admin']['password']
   105     except KeyError:
   105     except KeyError:
   106         login, pwd = manager_userpasswd()
   106         login, pwd = manager_userpasswd()
   107     while True:
   107     while True:
   108         try:
   108         try:
   109             return in_memory_cnx(config, login, pwd)
   109             return in_memory_cnx(config, login, password=pwd)
   110         except AuthenticationError:
   110         except AuthenticationError:
   111             print '-> Error: wrong user/password.'
   111             print '-> Error: wrong user/password.'
   112             # reset cubes else we'll have an assertion error on next retry
   112             # reset cubes else we'll have an assertion error on next retry
   113             config._cubes = None
   113             config._cubes = None
   114         login, pwd = manager_userpasswd()
   114         login, pwd = manager_userpasswd()