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 2022/09/06 15:20:08 UTC
[incubator-datalab] 01/02: [DATALAB-1408]: added password generation
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 <fr...@gmail.com>
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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org