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/10/13 08:21:37 UTC
[incubator-datalab] branch DATALAB-3073 updated: [DATALAB-3073]: added variable
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-3073
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-3073 by this push:
new 906010fda [DATALAB-3073]: added variable
906010fda is described below
commit 906010fda9ff881318758ba56791f799769dc4c8
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Thu Oct 13 11:21:08 2022 +0300
[DATALAB-3073]: added variable
---
.../src/general/scripts/aws/common_terminate_notebook.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/infrastructure-provisioning/src/general/scripts/aws/common_terminate_notebook.py b/infrastructure-provisioning/src/general/scripts/aws/common_terminate_notebook.py
index 46ea321a2..2220a7900 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/common_terminate_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/common_terminate_notebook.py
@@ -117,6 +117,12 @@ if __name__ == "__main__":
notebook_config['project_name'],
notebook_config['endpoint_name']
).lower().replace('_', '-')
+
+ try:
+ notebook_config['exploratory_name'] = os.environ['exploratory_name'].lower()
+ except:
+ notebook_config['exploratory_name'] = ''
+
notebook_config['tag_name'] = notebook_config['service_base_name'] + '-tag'
try:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org