Commit 01d5cd44 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

fix: no scheduler start in case of bad role affected by server

parent 44b2cb30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ class CCNode(object):
        logging.debug('Authenticating user %s' % login)
        try:
            role = self._server.authentify(login, password)
            self._scheduler_rearm()
        except RpcError as err:
            if err.exception == 'AuthenticationError':
                logging.warning('Authentication error')
@@ -50,6 +49,7 @@ class CCNode(object):
                raise Exception()
                # FIXME this will not cause a server restart, node stays dead
            else:
                self._scheduler_rearm()
                return True
    
    def _scheduler_rearm(self):