This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-3084
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-3084 by this push:
     new 800818968 [DATALAB-3084]: added rstudio cluster secret removal
800818968 is described below

commit 800818968560eed9b2dcb4e6571c9f86abf4b1ca
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Nov 1 17:12:16 2022 +0200

    [DATALAB-3084]: added rstudio cluster secret removal
---
 infrastructure-provisioning/src/general/lib/azure/actions_lib.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py 
b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
index 715652826..0b9182f9b 100644
--- a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
@@ -1191,6 +1191,8 @@ class AzureActions:
                 conn.sudo('sleep 5')
                 conn.sudo('rm -rf 
/home/{}/.ensure_dir/dataengine-service_{}_interpreter_ensured'.format(os_user,
                                                                                
                          cluster_name))
+            if exists(conn, 
'/home/{}/.ensure_dir/hdinsight_secret_ensured'.format(os_user)):
+                conn.sudo("sed -i '/-access-password/d' 
/home/{}/.Renviron".format(os_user))
             conn.sudo('rm -rf  /opt/' + cluster_name + '/')
             print("Notebook's {} kernels were removed".format(private))
         except Exception as err:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to