equal
deleted
inserted
replaced
210 pwd = sourcescfg['admin']['password'] |
210 pwd = sourcescfg['admin']['password'] |
211 except KeyError: |
211 except KeyError: |
212 login, pwd = manager_userpasswd() |
212 login, pwd = manager_userpasswd() |
213 while True: |
213 while True: |
214 try: |
214 try: |
215 self._cnx = repo_connect(self.repo, login, pwd) |
215 self._cnx = repo_connect(self.repo, login, password=pwd) |
216 if not 'managers' in self._cnx.user(self.session).groups: |
216 if not 'managers' in self._cnx.user(self.session).groups: |
217 print 'migration need an account in the managers group' |
217 print 'migration need an account in the managers group' |
218 else: |
218 else: |
219 break |
219 break |
220 except AuthenticationError: |
220 except AuthenticationError: |