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
commit cb06a3f7fa5bb24234c863566186337ba70e667d Author: leonidfrolov <[email protected]> AuthorDate: Tue May 25 14:48:47 2021 +0300 [DATALAB-2091]: fixed user for removve dataengine kernels connection --- infrastructure-provisioning/src/general/lib/gcp/actions_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py index d9b0648..c8b0b19 100644 --- a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py +++ b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py @@ -1447,7 +1447,7 @@ def remove_dataengine_kernels(notebook_name, os_user, key_path, cluster_name): computational_name = os.environ['computational_name'].replace('_', '-').lower() private = datalab.meta_lib.get_instance_private_ip_address(cluster_name, notebook_name) global con - con = datalab.fab.init_datalab_connection(private, ssh_user, key_path) + con = datalab.fab.init_datalab_connection(private, os_user, key_path) con.sudo('rm -rf /home/{}/.local/share/jupyter/kernels/*_{}'.format(os_user, cluster_name)) if exists(con, '/home/{}/.ensure_dir/dataengine_{}_interpreter_ensured'.format(os_user, cluster_name)): if os.environ['notebook_multiple_clusters'] == 'true': --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
