Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment