You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/04/09 09:04:25 UTC
[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]:
added user argument to remove_unexisting_kernel
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
new 0dc9173 [DATALAB-2091]: added user argument to remove_unexisting_kernel
0dc9173 is described below
commit 0dc91739f53a589447473c36ed1361e9c438ca53
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Apr 9 12:04:12 2021 +0300
[DATALAB-2091]: added user argument to remove_unexisting_kernel
---
infrastructure-provisioning/src/general/lib/os/fab.py | 2 +-
.../src/jupyter/scripts/configure_jupyter_node.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index 313e1de..fddbd58 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -246,7 +246,7 @@ def configure_jupyter(os_user, jupyter_conf_file, templates_dir, jupyter_version
sys.exit(1)
-def remove_unexisting_kernel():
+def remove_unexisting_kernel(os_user):
if not exists(conn,'/home/{}/.ensure_dir/unexisting_kernel_removed'.format(os_user)):
try:
conn.sudo('jupyter-kernelspec remove -f python3')
diff --git a/infrastructure-provisioning/src/jupyter/scripts/configure_jupyter_node.py b/infrastructure-provisioning/src/jupyter/scripts/configure_jupyter_node.py
index 9c57cad..83bee44 100644
--- a/infrastructure-provisioning/src/jupyter/scripts/configure_jupyter_node.py
+++ b/infrastructure-provisioning/src/jupyter/scripts/configure_jupyter_node.py
@@ -148,6 +148,6 @@ if __name__ == "__main__":
print("Updating pyOpenSSL library")
update_pyopenssl_lib(args.os_user)
print("Removing unexisting kernels")
- remove_unexisting_kernel()
+ remove_unexisting_kernel(args.os_user)
conn.close()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org