From 0f237f28e7eb074835ef2f9a07cacdb8f61288c1 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Thu, 10 Nov 2016 14:37:50 -0800 Subject: [PATCH] Rename the env variables Match the traitlet names --- jupyterhub/spawner.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jupyterhub/spawner.py b/jupyterhub/spawner.py index 29d12c5d..fabed927 100644 --- a/jupyterhub/spawner.py +++ b/jupyterhub/spawner.py @@ -326,13 +326,13 @@ class Spawner(LoggingConfigurable): # single-user notebook server, and not for direct usage by the spawners # themselves. Spawners should just use the traitlets directly. if self.mem_limit: - env['LIMIT_MEM'] = str(self.mem_limit) + env['MEM_LIMIT'] = str(self.mem_limit) if self.mem_guarantee: - env['GUARANTEE_MEM'] = str(self.mem_guarantee) + env['MEM_GUARANTEE'] = str(self.mem_guarantee) if self.cpu_limit: - env['LIMIT_CPU'] = str(self.cpu_limit) + env['CPU_LIMIT'] = str(self.cpu_limit) if self.cpu_guarantee: - env['GUARANTEE_CPU'] = str(self.cpu_guarantee) + env['CPU_GUARANTEE'] = str(self.cpu_guarantee) return env