equal
deleted
inserted
replaced
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() |