remove API token from spawner state

it's not needed - new tokens are created when spawners start
This commit is contained in:
MinRK
2014-10-27 15:52:01 -07:00
parent bce2be7401
commit 536b9b5e17

View File

@@ -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"""