mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 14:33:00 +00:00
Set allow_none=True for limit/guarantee floats
This commit is contained in:
@@ -205,6 +205,7 @@ class Spawner(LoggingConfigurable):
|
|||||||
|
|
||||||
cpu_limit = Float(
|
cpu_limit = Float(
|
||||||
None,
|
None,
|
||||||
|
allow_none=True,
|
||||||
help="""
|
help="""
|
||||||
Maximum number of cpu-cores a single-user server is allowed to use.
|
Maximum number of cpu-cores a single-user server is allowed to use.
|
||||||
|
|
||||||
@@ -236,6 +237,7 @@ class Spawner(LoggingConfigurable):
|
|||||||
|
|
||||||
cpu_guarantee = Float(
|
cpu_guarantee = Float(
|
||||||
None,
|
None,
|
||||||
|
allow_none=True,
|
||||||
help="""
|
help="""
|
||||||
Maximum number of cpu-cores a single-user server is allowed to use.
|
Maximum number of cpu-cores a single-user server is allowed to use.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user