From d447e1a99cc43150d0e8d989d28f0a2a86752400 Mon Sep 17 00:00:00 2001 From: Rollin Thomas Date: Tue, 15 Jan 2019 11:43:33 -0800 Subject: [PATCH] Only check user's home myquota --- jupyter-dev-nersc/web/jupyterhub_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jupyter-dev-nersc/web/jupyterhub_config.py b/jupyter-dev-nersc/web/jupyterhub_config.py index 32d094b..2405479 100644 --- a/jupyter-dev-nersc/web/jupyterhub_config.py +++ b/jupyter-dev-nersc/web/jupyterhub_config.py @@ -1012,7 +1012,8 @@ async def setup(spawner): username=username, client_keys=[(k,c)], known_hosts=None) as conn: - result = await conn.run("myquota -c") + home = "/global/homes/{}/{}".format(username[0], username) + result = await conn.run("myquota -c {}".format(home)) retcode = result.exit_status # result = await conn.run(spawner.remote_port_command) # remote_port = int(result.stdout)