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

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

commit b72051fd29679690808f6112f2d03fb1e98eefa4
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Sep 6 17:09:46 2022 +0300

    [DATALAB-1408]: added password generation
---
 .../src/general/scripts/azure/dataengine-service_create.py             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/azure/dataengine-service_create.py
 
b/infrastructure-provisioning/src/general/scripts/azure/dataengine-service_create.py
index 8684a329b..fd0aca6a0 100644
--- 
a/infrastructure-provisioning/src/general/scripts/azure/dataengine-service_create.py
+++ 
b/infrastructure-provisioning/src/general/scripts/azure/dataengine-service_create.py
@@ -24,6 +24,7 @@
 import argparse
 import json
 import sys
+import secrets
 from datalab.actions_lib import *
 from datalab.meta_lib import *
 from datalab.logger import logging
@@ -159,7 +160,7 @@ def create_cluster_parameters(location, tags, 
cluster_version, cluster_login_use
 
 if __name__ == "__main__":
     #parser.print_help()
-    password = ''
+    password = secrets.token_urlsafe(20)
     params = create_cluster_parameters(args.location, json.loads(args.tags), 
args.cluster_version, 'datalab-user',
                                        password, args.master_instance_type, 
args.worker_count,
                                        args.worker_instance_type, 
args.storage_account_name, args.storage_account_key,


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

Reply via email to