You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/07/25 15:18:49 UTC
[incubator-dlab] branch develop updated: [DLAB-850] Fixed bug:
shared pre-configured ami was not using.
This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/develop by this push:
new 2a927d3 [DLAB-850] Fixed bug: shared pre-configured ami was not using.
new d7afcdb Merge pull request #193 from AdamsDisturber/develop
2a927d3 is described below
commit 2a927d3a428ef6722af14d560871adf69af4d07b
Author: AdamsDisturber <ad...@gmail.com>
AuthorDate: Thu Jul 25 18:14:59 2019 +0300
[DLAB-850] Fixed bug: shared pre-configured ami was not using.
---
.../src/general/scripts/aws/common_prepare_notebook.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py b/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
index 1b8fb42..bda1a09 100644
--- a/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
+++ b/infrastructure-provisioning/src/general/scripts/aws/common_prepare_notebook.py
@@ -75,7 +75,7 @@ if __name__ == "__main__":
notebook_config['expected_image_name'] = '{}-{}-notebook-image'.format(notebook_config['service_base_name'],
os.environ['application'])
- notebook_config['notebook_image_name'] = (lambda x: os.environ['notebook_image_name'] if x != 'None'
+ notebook_config['notebook_image_name'] = (lambda x: os.environ['notebook_image_name'] if x != 'None' and ''
else notebook_config['expected_image_name'])(str(os.environ.get('notebook_image_name')))
print('Searching pre-configured images')
notebook_config['ami_id'] = get_ami_id(os.environ['aws_{}_image_name'.format(os.environ['conf_os_family'])])
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org