How to use the dockerspawner.DockerSpawner.get_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 get_state(self):
        state = DockerSpawner.get_state(self)
        state.update(GitMixin.get_state(self))
        state.update(dict(
            name=self.user.name,
        ))
        if hasattr(self.user, 'token'):
            state.update(dict(token=self.user.token))
        if hasattr(self.user, 'login_service'):
            state.update(dict(login_service=self.user.login_service))
        return state