From a00c13ba67f9028e226f65e19b219e8c7840a1fb Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Wed, 9 Nov 2016 09:41:54 -0800 Subject: [PATCH] Set allow_none=True for limit/guarantee floats --- jupyterhub/spawner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jupyterhub/spawner.py b/jupyterhub/spawner.py index d7aa7ccd..c3adfe00 100644 --- a/jupyterhub/spawner.py +++ b/jupyterhub/spawner.py @@ -205,6 +205,7 @@ class Spawner(LoggingConfigurable): cpu_limit = Float( None, + allow_none=True, help=""" Maximum number of cpu-cores a single-user server is allowed to use. @@ -236,6 +237,7 @@ class Spawner(LoggingConfigurable): cpu_guarantee = Float( None, + allow_none=True, help=""" Maximum number of cpu-cores a single-user server is allowed to use.