mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 06:52:59 +00:00
correct self.allow_multiple_servers to self.allow_named_servers
This commit is contained in:
@@ -202,7 +202,7 @@ class User(HasTraits):
|
|||||||
def spawn(self, options=None):
|
def spawn(self, options=None):
|
||||||
"""Start the user's spawner
|
"""Start the user's spawner
|
||||||
|
|
||||||
depending from the value of JupyterHub.allow_multiple_servers
|
depending from the value of JupyterHub.allow_named_servers
|
||||||
|
|
||||||
if False:
|
if False:
|
||||||
JupyterHub expects only one single-server per user
|
JupyterHub expects only one single-server per user
|
||||||
@@ -214,7 +214,7 @@ class User(HasTraits):
|
|||||||
"""
|
"""
|
||||||
db = self.db
|
db = self.db
|
||||||
|
|
||||||
if self.allow_multiple_servers:
|
if self.allow_named_servers:
|
||||||
if options is not None and 'server_name' in options:
|
if options is not None and 'server_name' in options:
|
||||||
server_name = options['server_name']
|
server_name = options['server_name']
|
||||||
else:
|
else:
|
||||||
@@ -224,8 +224,6 @@ class User(HasTraits):
|
|||||||
server_name = ''
|
server_name = ''
|
||||||
base_url = self.base_url
|
base_url = self.base_url
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
server = orm.Server(
|
server = orm.Server(
|
||||||
name = server_name,
|
name = server_name,
|
||||||
cookie_name=self.cookie_name,
|
cookie_name=self.cookie_name,
|
||||||
|
Reference in New Issue
Block a user