How to use the dockerspawner.DockerSpawner.load_state function in dockerspawner

To help you get started, we’ve selected a few dockerspawner examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github everware / everware / everware / spawner.py View on Github external
def load_state(self, state):
        DockerSpawner.load_state(self, state)
        GitMixin.load_state(self, state)
        for key in ('name', 'token', 'login_service'):
            if key in state:
                setattr(self.user, key, state[key])
        self.user.stop_pending = False
        self.user.spawn_pending = False