Fix services init

This commit is contained in:
GeorgianaElena
2019-06-06 17:42:10 +03:00
parent efe9853b85
commit 0b18b49cbc
2 changed files with 3 additions and 3 deletions

View File

@@ -235,7 +235,9 @@ def set_cull_idle_service(c, config):
def update_services(c, config):
c.JupyterHub.services.append(set_cull_idle_service(c, config))
c.JupyterHub.services = []
if config['services']['cull']['enabled']:
c.JupyterHub.services.append(set_cull_idle_service(c, config))
def _merge_dictionaries(a, b, path=None, update=True):

View File

@@ -44,8 +44,6 @@ c.JupyterHub.cleanup_servers = False
# Use a high port so users can try this on machines with a JupyterHub already present
c.JupyterHub.hub_port = 15001
c.JupyterHub.services = []
c.TraefikTomlProxy.should_start = False
dynamic_conf_file_path = os.path.join(INSTALL_PREFIX, 'state', 'rules.toml')