mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
remove API token from spawner state
it's not needed - new tokens are created when spawners start
This commit is contained in:
@@ -90,8 +90,7 @@ class Spawner(LoggingConfigurable):
|
|||||||
|
|
||||||
get_state, clear_state
|
get_state, clear_state
|
||||||
"""
|
"""
|
||||||
if state.get('api_token'):
|
pass
|
||||||
self.api_token = state['api_token']
|
|
||||||
|
|
||||||
def get_state(self):
|
def get_state(self):
|
||||||
"""store the state necessary for load_state
|
"""store the state necessary for load_state
|
||||||
@@ -106,8 +105,6 @@ class Spawner(LoggingConfigurable):
|
|||||||
a JSONable dict of state
|
a JSONable dict of state
|
||||||
"""
|
"""
|
||||||
state = {}
|
state = {}
|
||||||
if self.api_token:
|
|
||||||
state['api_token'] = self.api_token
|
|
||||||
return state
|
return state
|
||||||
|
|
||||||
def clear_state(self):
|
def clear_state(self):
|
||||||
@@ -117,7 +114,7 @@ class Spawner(LoggingConfigurable):
|
|||||||
|
|
||||||
Subclasses should call super, to ensure that state is properly cleared.
|
Subclasses should call super, to ensure that state is properly cleared.
|
||||||
"""
|
"""
|
||||||
self.api_token = ''
|
self.api_token = u''
|
||||||
|
|
||||||
def get_args(self):
|
def get_args(self):
|
||||||
"""Return the arguments to be passed after self.cmd"""
|
"""Return the arguments to be passed after self.cmd"""
|
||||||
|
Reference in New Issue
Block a user