correct self.allow_multiple_servers to self.allow_named_servers

This commit is contained in:
Christian Barra
2017-03-17 01:15:47 +01:00
parent d8213b5fa5
commit f873b77a5f

View File

@@ -202,7 +202,7 @@ class User(HasTraits):
def spawn(self, options=None):
"""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:
JupyterHub expects only one single-server per user
@@ -214,7 +214,7 @@ class User(HasTraits):
"""
db = self.db
if self.allow_multiple_servers:
if self.allow_named_servers:
if options is not None and 'server_name' in options:
server_name = options['server_name']
else:
@@ -224,8 +224,6 @@ class User(HasTraits):
server_name = ''
base_url = self.base_url
server = orm.Server(
name = server_name,
cookie_name=self.cookie_name,